a guest Feb 20th, 2019 61 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: "switch.{{area}}"
  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.
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