E.g.
Code: Select all
domoticz.notify('Prowl', 'Test Dz', domoticz.PRIORITY_NORMAL,nil,nil,domoticz.NSS_PROWL)Any known issue here?
Moderator: leecollings
Code: Select all
domoticz.notify('Prowl', 'Test Dz', domoticz.PRIORITY_NORMAL,nil,nil,domoticz.NSS_PROWL)Code: Select all
domoticz.notify('Prowl', 'Test Dz')Code: Select all
domoticz.notify('Prowl', 'Test Dz')Code: Select all
return {
on =
{
devices =
{
'Test ToggleSW',
},
},
logging =
{
level = domoticz.LOG_INFO,
marker = 'Prowl Test',
},
execute = function(domoticz, item)
domoticz.log('Script fired by device: '.. item.name .. ': ' .. item.state, domoticz.LOG_INFO)
if domoticz.devices(item.name).state == 'On' then
-- domoticz.notify('Prowl', 'Test Dz', domoticz.PRIORITY_NORMAL,nil,nil,domoticz.NSS_PROWL) -- original notify message
domoticz.notify('Prowl', 'Test Dz') -- Waltervl test suggestion
domoticz.log(item.name .. ' triggered', domoticz.LOG_INFO)
else
-- do nothing
end
end -- execute
}
Code: Select all
domoticz.notify('Prowl', 'Test Dz')Users browsing this forum: Google [Bot] and 1 guest