I would like to create an automation that turns off all zones at night in case I forgot to do so manually. Is it possible? I am not finding suitable items for the action.
Sure, I made a group using a Helper that all the speakers were in, and then use the action media_player.turn_off. The YAML is below, but I did this with the GUI.
description: ""
mode: single
triggers:
- trigger: time
at: "00:00:00"
conditions:
- condition: state
entity_id: media_player.all_speakers
state: "on"
actions:
- action: media_player.turn_off
metadata: {}
data: {}
target:
entity_id: media_player.all_speakers
Thanks. I did it with the GUI. I just turn off the speakers (without checking to see whether they are on).
I despair of ever being proficient at using Home Assistant, so I am grateful that there are people like you who are willing to help idiots like me.
I too, was once an idiot like you. You aren’t good at Home Assistant…yet. Keep working at it, and you’ll keep improving.