Page 1 of 1

piority and sound with pushover notifications

Posted: Tuesday 04 January 2022 18:23
by JdoTMM
Hi all,

After using domoticz for several years now i'm ready for Lua and DZvents :)

Google and this forum are my friends and I have some DZVents working. Only thing I'm having problems with is the priority system within DZVents and the sound with Pushover.

I am getting notifications on pushover without problems, only problem I have is that I can't get the high priority or sound selection working.

Things i've done so far:

I set Pushover to use siren sound for high priority sound and enabled "Always use default for high-priority" and "Play high-priority as alarm" (also with these settings disabled).

The code I use for the notification part:

Code: Select all

domoticz.notify('Brandalarm ' .. name .. ' is al ' .. minutes .. ' minuten geleden afgegaan.', domoticz.PRIORITY_EMERGENCY, domoticz.SOUND_ALIEN)
Tried it with and without the domoticz.SOUND part, used PRIORITY_HIGH as well. But pushover only uses the default sound.

I'm at a loss, I just can't get it to work.

Am I doing something wrong or is it broken?

Any help is appreciated

Re: piority and sound with pushover notifications  [Solved]

Posted: Wednesday 05 January 2022 10:46
by mgugu
First notify parameter should be the topic. Try

Code: Select all

domoticz.notify('Domoticz', 'Brandalarm ' .. name .. ' is al ' .. minutes .. ' minuten geleden afgegaan.', domoticz.PRIORITY_EMERGENCY, domoticz.SOUND_ALIEN)

Re: piority and sound with pushover notifications

Posted: Thursday 06 January 2022 9:33
by JdoTMM
mgugu wrote: Wednesday 05 January 2022 10:46 First notify parameter should be the topic. Try

Code: Select all

domoticz.notify('Domoticz', 'Brandalarm ' .. name .. ' is al ' .. minutes .. ' minuten geleden afgegaan.', domoticz.PRIORITY_EMERGENCY, domoticz.SOUND_ALIEN)
Thanks mgugu!

That fixed my problem :D