Skip to content

Instantly share code, notes, and snippets.

@mostlychris
Created December 20, 2020 17:20
Show Gist options
  • Save mostlychris/c90e3db9726585f776a55a7464572ab1 to your computer and use it in GitHub Desktop.
Save mostlychris/c90e3db9726585f776a55a7464572ab1 to your computer and use it in GitHub Desktop.
youtube blueprint demo
blueprint:
name: Turn on Light Door Open
description: Tutorial on creating blueprints for livestream
domain: automation
input:
door:
name: Entry Door
selector:
entity:
domain: binary_sensor
device_class: opening
target_switch:
name: Light
description: The light(s) that will be turned on
selector:
target:
entity:
domain: switch
trigger:
platform: state
entity_id: !input door
from: 'off'
to: 'on'
action:
service: switch.turn_on
entity_id: !input target_switch
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment