Page 1 of 1
time later then sunrise
Posted: Friday 09 February 2018 13:32
by straatm
How can I compare in dzVents if present time is later then sunrise? I want to use this in an if statement.
I tried already several options but nothing seems to work.
Re: time later then sunrise
Posted: Friday 09 February 2018 13:59
by najtram
I'n not that into dzvents, but you could create a virtual switch (and hide it with a $ starting name.) and let that switch autoswitch when sunrise. So then if $YOURSWITCHNAME is ON then....
how this helps...
Re: time later then sunrise
Posted: Friday 09 February 2018 17:42
by dannybloe
Code: Select all
if (domoticz.time.matchesRule('at daytime')) then
-- do your thing
end