I have two timers triggering (classic injection nodes).
- at 8:00
- at sunrise
the idea is to trigger our shades depending on what is latest. So I put time range behind each trigger [node-red-contrib-time-range-switch].
- I put the range of sunrise until 8:01 --> kills trigger at 8 if sun isn't up yet
- I put 8:00 until 9:30. --> kills triggers sunrise, if it isn't 8:00 yet
The idea was to catch those triggers that are yet to early. This gave me the nasty surprise of extending the time events into the next day. So if for 1) sunrise is after 8:01 it automatically (and not intended by me) extends the range to 8:01 the next day. The result is that the range is considered valid and the shades go up at 8:00.
Is this a bug in the time range node? From my understanding if the time range would be neg. every event happening should be out of range.
banging my head on this for quite some time, hope somebody can help.