Code : Tout sélectionner
return {
on = {
devices = {
'switch1'
},
timer = {
'every 1 minutes'
},
},
execute = function(domoticz, device)
if (domoticz.devices('switch1').state=='Off') then
print('switch1 mis a ON')
domoticz.devices('switch1').switchOn()
end
end
}Code : Tout sélectionner
Error: Switch command not send!, Hardware device disabled or not found!