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.