in a script where I use the domoticz.notify command I see that message sent to Telegram (defined in the Domoticz->Settings) appears twice.
I have also defined Pushbullet as notification system and I get only one message there.
Anyone with this issue?
Any suggestion?
Thanks
This is my simple code:
Code: Select all
return {
active = true, -- set to false to disable this script
on = {
timer = {
'at sunset'
}
},
execute = function(domoticz)
if domoticz.devices('Living Lamp').state == 'Off' then
if domoticz.devices('IsAtHome').state == 'On' then
domoticz.devices('Living Lamp').switchOn().checkFirst()
domoticz.notify('Light info', 'Qualcuno è a casa ed è sera. Accendo la piantana!', domoticz.PRIORITY_NORMAL)
end
end
end
}