Sending sound as a message by Pushover

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
User avatar
Bospieper
Posts: 174
Joined: Thursday 07 November 2019 10:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: NL
Contact:

Sending sound as a message by Pushover

Post by Bospieper »

Hello,
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 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest