niklaswall / node-red-contrib-light-scheduler

Light Scheduler is a node-red node that provides a weekly schedule mainly focused on controlling light in home automation scenarios.
Apache License 2.0
41 stars 15 forks source link

Filter always off #77

Closed mvandenabeele closed 3 years ago

mvandenabeele commented 3 years ago

I'm using light-scheduler-filter to filter messages based on a schedule, but the messages are always routed to output 2. The node also shows a red dot with status message OFF. I tested this with all days marked, no days marked, and several combinations in between. I guess I'm doing something wrong, but what?

This is the flow I've been testing with:

[{"id":"a2a67e702980ace2","type":"light-scheduler-filter","z":"e02c5e58.56078","settings":"2b0e2fb4.9baaf","events":"[{\"start\":{\"dow\":3,\"mod\":490},\"end\":{\"dow\":3,\"mod\":925}}]","name":"","onlyWhenDark":true,"scheduleRndMax":0,"sunElevationThreshold":6,"sunShowElevationInStatus":false,"x":380,"y":960,"wires":[["9ff5bd391b642ed7"],["5bae0541419fdc82"]]},{"id":"dbc49e4fe8605b30","type":"inject","z":"e02c5e58.56078","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":960,"wires":[["a2a67e702980ace2"]]},{"id":"9ff5bd391b642ed7","type":"debug","z":"e02c5e58.56078","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":560,"y":940,"wires":[]},{"id":"5bae0541419fdc82","type":"debug","z":"e02c5e58.56078","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":550,"y":980,"wires":[]},{"id":"2b0e2fb4.9baaf","type":"light-scheduler-settings","name":"my settings","latitude":"51","longitude":"51"}]

mvandenabeele commented 3 years ago

Never mind. Needed to set Dusk/Dawn to "Schedule only". A bit of a strange default value, but no bug/issue