Dear folks, when I restart Node Red or restart my Pi running node red under Home assitant, some switches change state. From on to off.
I have noticed that there is tugging at a restart,
How can I ensure that the status remains as before the restart.
If the switch is not changed in Home assistant, Node red will use that state (unchanged thus). If you have a node red node, it depends on the node how you want it to react. E.g. to start or not start as on of off.
Edi: Else paste a picture of the switch and its configuration here that you are having trouble with.