Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Last active February 9, 2021 22:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LarsBergqvist/bfc278706f170dcb019b1d5e87cc0a26 to your computer and use it in GitHub Desktop.
Save LarsBergqvist/bfc278706f170dcb019b1d5e87cc0a26 to your computer and use it in GitHub Desktop.
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