Page 1 of 1

Notification No_Sound not working

Posted: Wednesday 24 October 2018 14:35
by moses123
Hello,

I have tried to use the notifiction sound feature with dzVents and Pushover.
I have used the NoSound Constant, but the sound was always there.

If have found, that in the file "domoticz/dzVents/runtime/Domoticz.lua" the notification is converted to a SendCommand, but the order of the items seems to be wrong.

Code: Select all

local data = subject
				.. '#' .. message
				.. '#' .. tostring(priority)
				.. '#' .. tostring(sound)
				.. '#' .. tostring(extra)
				.. '#' .. tostring(_subSystem)
		self.sendCommand('SendNotification', data)
Maybe this is wrong, because the wikipage for the LUA commands says this:

Code: Select all

commandArray['SendNotification']='subject#body#extraData#priority#sound#subsystem'
which is a different order.


Moses123

Re: Notification Sound not working

Posted: Wednesday 24 October 2018 22:03
by waaren
moses123 wrote: Wednesday 24 October 2018 14:35 I have tried to use the notifiction sound feature with dzVents and Pushover.
I have used the NoSound Constant, but the sound was always there.
Did you put domoticz. in front of the constant and did you experiment with other sounds ? When I use the command below it just notifies as expected.

Code: Select all

dz.notify("Weather forecast", "weer tekst", domoticz.PRIORITY_NORMAL,domoticz.SOUND_DEFAULT, "" , myNotificationTable )

Re: Notification Sound not working

Posted: Thursday 25 October 2018 6:48
by moses123
Other sounds are ignored, and yes, i used domoticz.NO_SOUND.

Re: Notification No_Sound not working

Posted: Thursday 25 October 2018 7:42
by dannybloe
Guess it will be an issue of diving into Domoticz code as this is working for me as expected. Perhaps some internal notify endpoints treat stuff differently. I will look into this soon.

Re: Notification Sound not working  [SOLVED]

Posted: Thursday 25 October 2018 22:13
by waaren
moses123 wrote: Thursday 25 October 2018 6:48 Other sounds are ignored, and yes, i used domoticz.NO_SOUND.
Just tested on pushover and the sound does change with the various SOUND constants but I had to change the pushover settings on my android (untag "Always use default tone")

Code: Select all

domoticz.notify("Weather forecast", "test weather", dz.PRIORITY_NORMAL, dz.SOUND_SPACEALARM, "",   dz.NSS_PUSHOVER )