Notification No_Sound not working  [SOLVED]

Moderator: leecollings

Post Reply
moses123
Posts: 18
Joined: Thursday 06 September 2018 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Notification No_Sound not working

Post 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
Last edited by moses123 on Thursday 25 October 2018 6:49, edited 1 time in total.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Notification Sound not working

Post 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 )
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
moses123
Posts: 18
Joined: Thursday 06 September 2018 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Notification Sound not working

Post by moses123 »

Other sounds are ignored, and yes, i used domoticz.NO_SOUND.
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Notification No_Sound not working

Post 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.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Notification Sound not working  [SOLVED]

Post 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 )
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest