domoticz.time.minute exist?
Posted: Sunday 26 August 2018 11:20
Hi, i've an old and working script which opens gradually the blinds every morning in 3 step but i want to optimize. Considering that in the time trigger i've that:
now i need an 'if' statement build in this way:
if domoticz.time.hour is 7 AND DOMOTICZ.TIME.MINUTE IS 45 then
open blind at level 20
elseif domoticz.time.hour is 8 AND DOMOTICZ.TIME.MINUTE IS 00 then
open blind at level 40
elseif domoticz.time.hour is 8 AND DOMOTICZ.TIME.MINUTE IS 15 then
open blind at elevel 100
i've tried but domoticz.time.minute seems to not exist in dzvents, correct?
Thanks in advance.
Code: Select all
on = {
timer = {
'at 22:30',
'at 7:45',
'at 8:45'
},if domoticz.time.hour is 7 AND DOMOTICZ.TIME.MINUTE IS 45 then
open blind at level 20
elseif domoticz.time.hour is 8 AND DOMOTICZ.TIME.MINUTE IS 00 then
open blind at level 40
elseif domoticz.time.hour is 8 AND DOMOTICZ.TIME.MINUTE IS 15 then
open blind at elevel 100
i've tried but domoticz.time.minute seems to not exist in dzvents, correct?
Thanks in advance.