biddster / node-red-contrib-schedex

Scheduler for node-red which allows you to enter on/off times as 24hr clock (e.g. 01:10) or suncalc events (e.g. goldenHour). It also allows you to offset times and randomise the time within the offset.
22 stars 17 forks source link

Get the overall state? #63

Closed ingo-b closed 4 years ago

ingo-b commented 4 years ago

After sending "info" the emitted object contains "state". This state shows the state of the timer, not the overall state which would also consider the manual on/off mode. Is it possible to get the overall state?

biddster commented 4 years ago

Yes, I think this is possible.

biddster commented 4 years ago

I"m looking at this now. I think I will include a property called actuatedstate which will indicate the last state that was actuated, either by a manual event or scheduled event.

The only thing I'm undecided upon is the initial value of the property. Currently it's null if nothing has happened. I think that's the correct thing to do, but I'm open to suggestions.

biddster commented 4 years ago

Fixed in 1.10.0