I want to add a button or so in the interface for triggering lights off.
If I add the script to the group I want it in, it just shows up under the “Scripts” block so that’s why I’m not doing it that way.
You can add an input_boolean
“switch” and an automation that triggers when the switch is turned on.
Then put the script in the action:
-block of the automation - or just call it from there as a script.
At the end of the script or action-block, reset the switch back to “off”.
Sebastian
1 Like
You could always just add it to a different group in the customization.yaml and that would move it from the Script block to where ever you put it.