Thank you for your reply.
I’ve been trying to, but can’t get it to work. I cannot get any UDP state, how can I update the command_state so that it reflects the switch actual status?
It’s a switch to turn on and off a device with UDP commands. I need the state to be stored. If you don’t know I would appreciate if anyone else has a clue on how to keep the state of my switch even after reboot.
The switch will not change state other then by these UDP commands. The commands turn a DMX lighting fixture on/off, and unfortunately it doesn’t send any state feedbacks.