Skip to main content
Version: Next

Notifications

Notifications allow Maintainerr to send automated alerts and updates about your media collections through various messaging platforms and services. You can configure multiple notification agents and specify which types of events should trigger notifications.

Beta Feature

The notification system is currently in beta. Some agents have not been tested extensively.

Overview

The notification system works by connecting configured notification agents to your rules. When specific events occur (such as media being added to or removed from collections), Maintainerr will send notifications to the configured agents that are subscribed to those event types.

Configuring Notification Agents

Navigate to Settings → Notifications to manage your notification agents. Here you can add, edit, and delete notification configurations.

General Configuration

Each notification agent requires the following common settings:

ParameterDescription
NameA descriptive name for this notification configuration
EnabledWhether this agent is active and will send notifications
AgentThe notification service to use (Discord, Email, etc.)
TypesWhich notification types this agent should receive
Notify x days before removalFor "Media About to be Handled" notifications, how many days before removal to send the alert (default: 3)

Notification Types

Maintainerr supports several notification types that you can enable for each agent:

TypeDescription
Media Added to CollectionSent when media items are added to a collection
Media Removed from CollectionSent when media items are removed from a collection
Media About to be HandledAdvance warning that media will be processed/deleted in X days
Media HandledConfirmation that media has been processed/deleted
Rule Handling FailedAlert when there's an error processing rules
Collection Handling FailedAlert when there's an error processing collections

Supported Notification Agents

Discord

Send notifications to Discord channels via webhooks.

Setup Required

You'll need to create a Discord webhook for your channel. Follow Discord's guide: Intro to Webhooks

ParameterRequiredDescription
Webhook URLYesDiscord webhook URL for the target channel
Bot UsernameNoCustom username for the bot (defaults to "Maintainerr")
Bot Avatar URLNoCustom avatar image URL for the bot

Email

Send notifications via SMTP email.

ParameterRequiredDescription
Email FromYesSender email address
Sender NameYesDisplay name for the sender
Email ToYesRecipient email address
SMTP HostYesSMTP server hostname
SMTP PortYesSMTP server port (usually 587 or 465)
SecureNoUse implicit TLS
Ignore TLSNoDisable TLS entirely
Require TLSNoAlways use STARTTLS
Auth UserNoSMTP authentication username
Auth PassNoSMTP authentication password
Allow Self SignedNoAccept self-signed certificates
PGP KeyNoPGP public key for encryption
PGP PasswordNoPassword for PGP key

Gotify

Send notifications to a Gotify server.

Setup Required

You'll need a running Gotify server instance. See the Gotify documentation for installation instructions.

ParameterRequiredDescription
URLYesGotify server URL
TokenYesApplication token from Gotify

LunaSea

Send notifications to LunaSea mobile app.

Project Status

LunaSea has shut down development as of 2024. While the binaries are still available for download, no further updates will be provided. See lunasea.app for more information.

Setup Required

You'll need the LunaSea mobile app installed and configured. The webhook setup documentation may still be accessible through archived versions.

ParameterRequiredDescription
Webhook URLYesLunaSea webhook URL
Profile NameNoSpecific profile name (if not using default)

Pushbullet

Send notifications via Pushbullet.

Setup Required

You'll need a Pushbullet account and API token. Visit Pushbullet Settings to create an access token.

ParameterRequiredDescription
Access TokenYesPushbullet API access token
Channel TagNoSpecific channel to send to

Pushover

Send notifications via Pushover.

Setup Required

You'll need a Pushover account and to register an application. Visit Pushover.net to sign up and create an application for your API token.

ParameterRequiredDescription
Access TokenYesPushover application token
User TokenYesYour 30-character user or group identifier
SoundNoNotification sound name

Slack

Send notifications to Slack channels.

Setup Required

You'll need to create a Slack webhook for your workspace. Follow Slack's guide: Sending messages using Incoming Webhooks

ParameterRequiredDescription
Webhook URLYesSlack webhook URL for the target channel

Telegram

Send notifications via Telegram bot.

Setup Required

You'll need to create a Telegram bot and get your chat ID. Follow these steps:

  1. Message @BotFather on Telegram to create a new bot
  2. Get your Chat ID by messaging @get_id_bot and using the /my_id command
ParameterRequiredDescription
Bot Auth TokenYesTelegram bot authentication token
Chat IDYesTarget chat ID (use @get_id_bot to find your chat ID)
Bot UsernameNoBot username for user interaction
Send SilentlyNoSend notifications without sound

Webhook

Send notifications to custom webhook endpoints. Requests are sent using the POST request method.

ParameterRequiredDescription
Webhook URLYesTarget webhook endpoint URL
JSON PayloadYesCustom JSON payload template
Auth HeaderNoAuthorization header value

Webhook Variables

The webhook agent supports variable replacement in the JSON payload. You can use the following variables:

VariableDescription
{{notification_type}}The type of notification being sent
{{subject}}The notification subject/title
{{message}}The notification message content
{{image}}Associated image URL (if available)
{{extra}}Additional data fields

Example JSON payload:

{
"content": "{{subject}}",
"embeds": [
{
"title": "{{notification_type}}",
"description": "{{message}}",
"color": 3447003
}
]
}

Connecting Notifications to Rules

When creating or editing a rule, you can specify which notification agents should receive alerts for that rule's collection activities. This allows you to have different notification settings for different types of content or rules.

To configure notifications for a rule:

  1. Create or edit a rule group
  2. In the rule configuration, find the Notifications option
  3. Select which configured notification agents should receive alerts for this rule
  4. Save the rule configuration

Testing Notifications

You can test any configured notification agent by:

  1. Going to Settings → Notifications
  2. Editing an existing notification configuration
  3. Clicking the Test button
  4. A test notification will be sent to verify the configuration is working

Troubleshooting

Common Issues

  • Notifications not sending: Verify the agent is enabled and the connection settings are correct
  • Missing notifications: Check that the notification agent is connected to the relevant rules

Log Information

Notification activities are logged in the Maintainerr logs. Check the logs for any error messages or delivery confirmations if notifications aren't working as expected.