Skip to content

Instantly share code, notes, and snippets.

@stjohnjohnson
Created February 18, 2016 06:55
Show Gist options
  • Save stjohnjohnson/e2c66d770ac59460c283 to your computer and use it in GitHub Desktop.
Save stjohnjohnson/e2c66d770ac59460c283 to your computer and use it in GitHub Desktop.
input_binary:
scene_thing:
name: Night Mode
initial: off
icon: mdi:car
automation:
- alias: Go to night mode
trigger:
platform: state
entity_id: input_binary.scene_thing
to: "on"
action:
service: scene.turn_on
entity_id: scene.night
- alias: Go to day mode
trigger:
platform: state
entity_id: input_binary.scene_thing
to: "off"
action:
service: scene.turn_on
entity_id: scene.day
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment