ParadoxAlarmInterface / pai

Paradox Magellan, Spectra and EVO, with MQTT, Signal, Pushbullet, Pushover and others
https://gitter.im/paradox-alarm-interface
Eclipse Public License 2.0
337 stars 90 forks source link

Cannot get Pushover to work #452

Closed lpaolini closed 3 months ago

lpaolini commented 3 months ago

Alarm system

EVO192 7.70.1 + IP150

Environment

Docker (latest) on Raspberry Pi 4

Describe the bug

Using configuration below I get two lines of logging related to Pushover but no notification is sent. Please note test notifications from Pushover website are correctly delivered.

To Reproduce

PUSHOVER_ENABLE = True
PUSHOVER_KEY = '<Application token>'
PUSHOVER_BROADCAST_KEYS = [{
   'user_key': '<User key>',
   'devices': '*'
}]
PUSHOVER_MIN_EVENT_LEVEL = 'DEBUG'

Logs

pai  | 2024-04-09 18:41:20,603 - DEBUG    - MainThread - PAI.paradox.interfaces.interface_manager - Registering PushoverTextInterface
pai  | 2024-04-09 18:41:20,604 - INFO     - PushoverTextInterface - PAI.paradox.interfaces - Starting PushoverTextInterface Interface
yozik04 commented 3 months ago

Config looks the same as mine. It certainly works for me.

I additonally have next, but it should not influence.

PUSHOVER_EVENT_FILTERS = [
    'live,alarm,-restore',
    'trouble,-clock',
    'live,tamper',
    'live,arm',
    'live,disarm'
]

I recommend rechecking user key and app key. If there are no errors in logs then there should not be any problems with the integration.

yozik04 commented 3 months ago

Checked my keys. 'user_key': '<User key>', I use Group Key there for my Delivery Group.

PUSHOVER_KEY = '<Application token>' is Application API Token/Key

lpaolini commented 3 months ago

I tried creating a delivery group but the result is the same. Just an info log line, no errors, no push notifications.

pai | 2024-04-09 20:47:24,893 - INFO - PAI.paradox.interfaces - Starting PushoverTextInterface Interface

I'm very confused... Is it expected to get just a single log line related to Pushover?

By the way, if I intentionally use wrong credentials I also get this:

pai | 2024-04-09 21:56:44,778 - ERROR - PushoverTextInterface - PAI.paradox.interfaces - Interface loop

lpaolini commented 3 months ago

With the following configuration I get no notifications at all.

PUSHOVER_ENABLE = True
PUSHOVER_KEY = '<App key>'
PUSHOVER_BROADCAST_KEYS = [{
   'user_key': '<User key>',
   'devices': '*'
}]

But then IT WORKS perfectly well when I also add the following filters, as you suggested.

PUSHOVER_EVENT_FILTERS = [
    'live,alarm,-restore',
    'trouble,-clock',
    'live,tamper',
    'live,arm',
    'live,disarm'
]

@yozik04 Thanks for your support! It would be worth checking the defaults and updating the wiki if filters are actually required for Pushover to work.