How do I turn the input boolean toggle switch (and icon) to off after the automation is performed. Here’s my automation to turn off ALL selected lights at the push of a button, or using the exposed toggle in Google Assistant.
Works fine, waits 10 seconds, turns off selected lights, but if invoked by the switch on the panel, the icon in the panel doesn’t go back to the off (unlit) condition.
If you want to use an automation, you’ll have to turn off the input boolean after your automation runs.
Another option is use a button helper as a trigger instead of your input boolean…
Finally, because it looks like you’re trying to create an easy way to have all lights on or off… You could create a group with all those lights… the state of the group would actually be the aggrigate state of the entities…
Be careful with the automation you posted, there is a non-obvious “gotcha”. If you happen to trigger the automation a second time while the first is running, your input boolean won’t be reset because the second instance will be cancelled without executing any actions. Next time you want to trigger the automation, the trigger won’t work as the boolean will already be “on”.
Ask me how I know.
There are several ways to work around it - you can have an automation that turns off the input boolean if it happens to be on for more than a few minutes, or you can change the mode from “single” and check if more than 1 instance is running with a choose and simple turn off the boolean only in the second instance and quit.
I use a custom button card, and tie the biolean to the card as the entity. The action is “toggle”, and then I use the state of the boolean to trigger whatever I want. Works great, and I don’t have to turn anything on or off since the simple press of the button in the dashboard does it for me.