Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created November 24, 2017 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LarsBergqvist/9f1fbda31658acffbd1cb147025f99f9 to your computer and use it in GitHub Desktop.
Save LarsBergqvist/9f1fbda31658acffbd1cb147025f99f9 to your computer and use it in GitHub Desktop.
Home Assistant automation for Philips Hue garage light group
- id: automation1
alias: Turn on garage lights when sun sets
initial_state: true
hide_entity: false
trigger:
- event: sunset
offset: 00:25:00
platform: sun
action:
- data:
brightness: 190
entity_id: light.garage
service: light.turn_on
- id: automation2
alias: Turn off garage lights when sun rises
initial_state: true
hide_entity: false
trigger:
- event: sunrise
offset: -01:00:00
platform: sun
action:
- data:
entity_id: light.garage
service: light.turn_off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment