Prerequisites
Pushover account
Create an account at pushover.net.
Application token
Register a new application in your Pushover dashboard to get an application token (
PUSHOVER_KEY).No additional packages are required. Pushover notifications are delivered over HTTPS using the
requests library, which is already a core PAI dependency.Priority mapping
PAI maps its internal event levels to Pushover message priorities:| PAI event level | Pushover priority |
|---|---|
DEBUG | -2 (lowest, no notification) |
INFO | -1 (quiet) |
WARN | 0 (normal) |
ERROR | 1 (high) |
CRITICAL | 2 (emergency — repeats every 30 s, expires after 3 h) |
Configuration
Add the following to yourpai.conf:
pai.conf
Configuration reference
PUSHOVER_ENABLE
PUSHOVER_ENABLE
Enable or disable the Pushover interface.Default:
FalsePUSHOVER_KEY
PUSHOVER_KEY
Your Pushover application token. Obtain this by registering a new application at pushover.net/apps/build.Default:
''PUSHOVER_BROADCAST_KEYS
PUSHOVER_BROADCAST_KEYS
A list of recipient dictionaries. Each entry must have:
user_key— the Pushover user or group key.devices—'*'to send to all devices, or a comma-separated list of device names.
[]Example:PUSHOVER_MIN_EVENT_LEVEL
PUSHOVER_MIN_EVENT_LEVEL
The minimum severity level for events to be forwarded. Accepted values:
DEBUG, INFO, WARN, ERROR, CRITICAL.Default: 'INFO'PUSHOVER_EVENT_FILTERS
PUSHOVER_EVENT_FILTERS
A list of tag expressions that control which events are sent. Each entry is a comma-separated list of tags; a
- prefix excludes a tag. An event matches if all tags in any one expression match. Cannot be combined with PUSHOVER_ALLOW_EVENTS.Default:PUSHOVER_ALLOW_EVENTS and PUSHOVER_IGNORE_EVENTS
PUSHOVER_ALLOW_EVENTS and PUSHOVER_IGNORE_EVENTS
Alternative to
PUSHOVER_EVENT_FILTERS using regular expressions.PUSHOVER_ALLOW_EVENTS— list of regex patterns matchingtype,label,property=valuefor events to forward.PUSHOVER_IGNORE_EVENTS— list of regex patterns for events to suppress, applied afterALLOW_EVENTS.
[] for bothExample configuration
How event filtering works
- Tag filters (PUSHOVER_EVENT_FILTERS)
- Regex filters (PUSHOVER_ALLOW_EVENTS / PUSHOVER_IGNORE_EVENTS)
Each entry in
PUSHOVER_EVENT_FILTERS is a comma-separated list of tags. A - prefix means the tag must not be present. An event is forwarded if it matches all tags in any one filter entry.