The easiest is to create a scene - those are natively exposed in widgets. If you want something that will toggle the light, I’d use an input_boolean in a scene, and an automation that would watch for it changing to on. The automation would toggle the light, then turn the input_boolean off so the scene will do something again.
The easiest is to create a scene - those are natively exposed in widgets. If you want something that will toggle the light, I’d use an input_boolean in a scene, and an automation that would watch for it changing to on. The automation would toggle the light, then turn the input_boolean off so the scene will do something again.