is it possible and if so better to combine those lines that are for Scene statements:
Code: Select all
if
domoticz.devices(56).lux < 350 and -- Lux
domoticz.variables(7).value == 0 and -- Lux Variable
domoticz.devices(65).state == 'Off' and -- Scene Goodnight
domoticz.devices(59).state == 'Off' and -- Scene Evening
domoticz.devices(62).state == 'Off' and -- Scene Movie
domoticz.devices(61).state == 'Off' and -- Scene TV
(domoticz.devices(85).state == 'On' or domoticz.devices(86).state == 'On') -- iPhone Sensors
then