this script does not work like i want it to:
Code: Select all
return {
on = {
devices = {
'Telefoon_Jeanine',
'Telefoon_Roy',
'ZonOnder'
},
},
execute = function(domoticz, device)
if ((device.name == 'Telefoon_Jeanine' and device.state == 'On') or
(device.name == 'Telefoon_Roy' and device.state == 'On') and
(device.name == 'ZonOnder' and device.state == 'On')) then
domoticz.devices('Tuin').switchOn()
end
end
}
The light 'tuin' is turned on when:
'Telefoon_Jeanine', is on
or
'Telefoon_Roy', is on
and
'ZonOnder' is on
Al three are switches. Without the ZonOnder it works.
I replaced ZondOnder also by
Code: Select all
timer = {
'at nighttime''
}
I'm Using the latest beta Version: 3.8807