Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Indoor light group and good night automation rule for Home Assistant
group:
indoor_lights:
name: Indoor lights
entities:
- switch.window_lights_downstairs
- switch.wall_lights_downstairs
- switch.window_lights_upstairs
- switch.floor_light_upstairs
automation:
- alias: Turn off indoor lights at night
initial_state: True
hide_entity: False
trigger:
platform: time
at: '23:00:00'
action:
service: switch.turn_off
entity_id: group.indoor_lights
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment