Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.33 KB | None | 0 0
  1. snips:
  2. intent_script:
  3.   turnOnLight:
  4.     action:
  5.       - service: switch.turn_on
  6.         data_template:
  7.           entity_id: "switch.{{area}}"
  8.  
  9. # I have named my ceiling light switches after the rooms they are in, e.g. switch.living_room. The area slots have the same names, therefore I can use them here to create the entity id.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement