#Automation to turn all lights on or off
1 messages · Page 1 of 1 (latest)
i think you should look at either a scene or a group. If all you want to do is turn them off would add all the devices to a scene in the off state and then just activate the scene with the button.
Hi @bronze steppe,
- action: light.turn_off
target: all
How do I add it to Home Assistant?
I’m sure that can be done. Also having someone or something writing it for you means the second it misbehaves, you will be struggling back to find someone to fix it for you.
The best way to learn is to just try. Run thru the docs on getting started with the automation editor. If you get stuck, come back with what you have done.
https://www.home-assistant.io/docs/automation/basics/
and
https://community.home-assistant.io/t/the-home-assistant-cookbook-index/707144#automations-10.