biddster / node-red-contrib-time-range-switch

A simple Node-RED node that routes messages depending on the time.
18 stars 6 forks source link

Make off time exclusive #47

Closed alfredopironti closed 2 years ago

alfredopironti commented 2 years ago

When a user says "Turn lights on at 8PM, off at 10PM", they usually mean that at 8:00:00 PM the lights turn on, and at 10:00:00 PM the lights turn off. Hence, the range is meant inclusively of the on time, and exclusively of the off time. This patch implements this behavior.

biddster commented 2 years ago

Apologies @alfredopironti, I missed this amongst all the dependabot stuff. I'll get this rolled out. Thank you.