date + Hour no work (Resolved)
Posted: Thursday 06 June 2019 10:45
Hello,
My dzvent no work i can not find the problem if anyone could help me
Ps: i'm french my english is no good
My dzvent no work i can not find the problem if anyone could help me
Ps: i'm french my english is no good
Code: Select all
return {
on = { devices = { 'Capteur Toilette','Interrupteur Toilette','Toilette1'},
timer = {'at 21:00-07:59','at 08:00-20:59'}
},
execute = function(domoticz, timer, item, device)
if item.state == "Open" or item.state == "Click" and domoticz.time.matchesRule('at 21:00-07:59') then
domoticz.devices("Toilette1").dimTo(15)
end
if item.state == "Open" or item.state == "Click" and domoticz.time.matchesRule('at 08:00-20:59') then
domoticz.devices("Toilette1").dimTo(99)
domoticz.devices("Toilette2").switchOn()
end
if item.state == "Open" or item.state == "Click" and domoticz.devices('Toilette1') == 'On' then
domoticz.devices("Toilette1").switchOff()
domoticz.devices("Toilette2").switchOff()
end
end
}