I have an office system installed integrating power consumption, temperture and lighting control by Wifi Relay programmed by Node-Red.
I programmed daily ON/OFF using scheduler by scargill (GitHub - scargill/scheduler)
I control Wifi Relay by HTTP so the scheduler component is connected to a HTTP request node.
I have a problem. When Raspberry pi restart or have any problem the Node-Red service restart too and sometimes Relay switch off the light.
Do you know how to program it without this problem?