Domoticz uses minutes form begining of day in time comparisons.Minglarn wrote:OKey need some help here...
I Want this blocky to be active ony between time from morgning 06:00 and after midnight 00:30 . How do I make the time comparison?
Would this work?
So 06:00 == 6*60+0 == 360 and 00:30 0*60+30 == 30.
So your rule is:
if time >= 360 or time <= 30 do your stuff. It should work.
What kinda functionality you are running in the blocky? Is it event based(state change) or time based(once a minute)? If its event based you could also use dummy switch and its timer to turn it on or off. Then just use that switch state to compare if run blocky or not.