a guest Feb 20th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. snips:
  2. intent_script:
  3.   turnOnLight:
  4.     action:
  5.       - service: switch.turn_on
  6.         data_template:
  7.           entity_id: >
  8. # 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.
  9.             switch.{{area}}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand