Sending sound as a message by Pushover
Posted: Tuesday 08 November 2022 20:38
Hello,
I have a (Ill hope) a small problem regarding sending a sound message by Pushover.
This is the script I am using:
The device is a test switch. Both On and Off state gives a standard Pushover notification with text but the sounds Rain or No_Rain are not played.
The sounds are both text-to speech in MP3 format and uploaded to the Pushover website.
I have a (Ill hope) a small problem regarding sending a sound message by Pushover.
This is the script I am using:
Code: Select all
return {
on = {
devices = {
302
}
},
logging = {
level = domoticz.LOG_INFO,
marker = 'template',
},
execute = function(dz, device,domoticz)
if dz.devices(302).state == 'On' then
dz.notify('Regen', 'het gaat regenen', domoticz.PRIORITY_HIGH, SOUND_Rain,nil,dz.NSS_PUSHOVER)
elseif dz.devices(302).state == 'Off' then
dz.notify('Regen', 'het is weer droog', domoticz.PRIORITY_LOW, SOUND_No_Rain,nil,dz.NSS_PUSHOVER)
end
end
}The sounds are both text-to speech in MP3 format and uploaded to the Pushover website.