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

Inconsistent results from msg.payload = 'info' #46

Closed drmibell closed 5 years ago

drmibell commented 5 years ago

When interrogated using msg.payload = 'info', the onrandomoffset and offrandomoffset properties are not consistent in how they report their state. When active they report a boolean true value, but when inactive they report a numerical value of 0. There are obvious workarounds, but it would be preferable if the "false" value were actually boolean false.

biddster commented 5 years ago

Thanks for the report, I'll look into it.

biddster commented 5 years ago

Fixed in 1.6.0