Skip to content

Instantly share code, notes, and snippets.

@Naesstrom
Created March 23, 2018 13:55
Show Gist options
  • Save Naesstrom/9e6092f0fa07f65acf25b59a03443fdf to your computer and use it in GitHub Desktop.
Save Naesstrom/9e6092f0fa07f65acf25b59a03443fdf to your computer and use it in GitHub Desktop.
- alias: Earth hour starts
trigger:
platform: time
after: "20:30:00"
condition:
condition: time
weekday:
- sat
action:
service: light.turn_off
entity_id: group.all_lights
- alias: Earth hour ends
trigger:
platform: time
after: "21:30:00"
condition:
condition: time
weekday:
- sat
action:
service: light.turn_on
entity_id: group.all_lights
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment