Node-Red

I posted a pic of a flow almost exactly like that in the main node-red thread yesterday. It just didn't have a lux switch node on the "on" branch, but that would be easy to add.