I am trying to get the RunScriptIntent working as I was able to do with the ActivateSceneIntent. I was able to get both responding without errors on both the HA and Amazon side when testing in the Amazon Alexa Service Simulator and calling scenes via “Alexa tell home assistant turn on {scene}” however when I call a script it does not error but does not activate the script. For example if I do “Alexa tell home assistant to run livingroom fan”. Here is the script I am attempting with:
Scripts.yaml
livingroom_fan: sequence: - service: homeassistant.toggle data: entity_id: switch.livingroom_fan
Switches.yaml
- platform: tplink host: 192.168.1.103 name: Livingroom Fan
intent_script.yaml
> RunScriptIntent:
> action:
> service: script.turn_on
> data_template:
> entity_id: script.{{ Script | replace(" ", "_") }}
> speech:
> type: plain
> text: alexa_confirm.yaml