Page 1 of 1

notifications domoticz problem with priority and sound

Posted: Friday 08 May 2020 14:55
by kitopopo
Hi dear friends.

I've been trying to make the sound change or priority work with notifications by fcm (app) for more than a week, but I don't get it, the same sound is always emitted, even if I select "default sound" on my android phone, changing the priority I don't get changes. The script I use is as follows

domoticz.notify("subject" , "message " , domoticz.PRIORITY_HIGH,domoticz.NO_SOUND, "", "fcm" )
domoticz.notify("subject" , "message " , domoticz.PRIORITY_HIGH,domoticz.SOUND_SIREN, "", "fcm" )

Alwais i get the same sound, I also test with telegram but the same result. In the Domoticz payment app they are an option thath is possible add a alarm durinx x seconds. this option is very good .

It would be interesting to be able to mute the sound by adding "No_sound" or changing the "priority level" but I don't get results. There is very little information on the dzvents wiki and internet browsers. Is this feature correctly implemented in domoticz?

Thanks in advance, kind regards

Re: notifications domoticz problem with priority and sound

Posted: Friday 08 May 2020 15:24
by waaren
kitopopo wrote: Friday 08 May 2020 14:55 I've been trying to make the sound change or priority work with notifications by fcm (app) for more than a week, but I don't get it.
Last time I checked using different sounds was only implemented for pushover. All other notification systems ignore the sound parameter dzVents sends and use a default. Nothing I can do about that from a dzVents perspective.
Hopefully someone with good C++ skills and some spare time can dive into this. Sources are in notification subdirectory

Re: notifications domoticz problem with priority and sound

Posted: Monday 03 August 2020 22:27
by kitopopo
waaren wrote: Friday 08 May 2020 15:24
kitopopo wrote: Friday 08 May 2020 14:55 I've been trying to make the sound change or priority work with notifications by fcm (app) for more than a week, but I don't get it.
Last time I checked using different sounds was only implemented for pushover. All other notification systems ignore the sound parameter dzVents sends and use a default. Nothing I can do about that from a dzVents perspective.
Hopefully someone with good C++ skills and some spare time can dive into this. Sources are in notification subdirectory
Dear friend,

Yesterdey i test the notification with Dzvents and the "priority" now works correctly with telegram X. if i choose priority low the notification arrive to telegram without sound. If i select priority.high the notification arrive with sound.- congratulations. This is a interesting feature.

domoticz.notify("Domoticz", "*Parking !*\nParking test!", domoticz.PRIORITY_LOW,domoticz.SOUND_DEFAULT, "" , "telegram")

Is there a new way to change the notification tone? Thank you

Best regards.

Re: notifications domoticz problem with priority and sound

Posted: Monday 03 August 2020 23:24
by waaren
kitopopo wrote: Monday 03 August 2020 22:27 Yesterday i test the notification with Dzvents and the "priority" now works correctly with telegram X. if i choose priority low the notification arrive to telegram without sound. If i select priority.high the notification arrive with sound.- congratulations. This is a interesting feature.
As far as I know Telegram added the option to silence the notification when a message arrive with low priority quite some time ago. There were no recent changes in the domoticz / dzVents Telegram implementation.

Is there a new way to change the notification tone? Thank you
nope. Still the same answer as in my last post here. In fact I am not even sure Telegram supports different sounds controlled by the API