Good morning,
I have recently started setting up Alexa intents. I have been able to successfully setup a couple scenes and am now trying to move onto lights. I am having a hard time wrapping my head around switch vs light though. In scenes, I used a data template with:
entity_id: scene.{{ Scene | replace(" ", "_") }}
to add the underscores that Home Assistant uses. With lights, I need to use the same replace but add another for lights/switch I think. Problem is, I can’t figure out how to do that. is it:
entity_id: switch.{{ Switch | replace(" ", "_"),("light", "switch") }}
Which doesn’t seem to work.
Currently everything works on the Alexa developer site, it just doesn’t turn on/off the light.
Thanks,
Dan