Have been following the Mark Watt Tech YT install of actionable notifications for the second time (had it all working then switched to Nabu Casa and trying to just change the external login didn’t work)
Seem to have completed most of it, but when I try to call service:
service:script.activate_alexa_actionable_notification data
I get an error message:
`Failed to call service script.activate_alexa_actionable_notification. Error rendering data template: Result is not a Dictionary’
Can anyone point me at what I need to look at to fix this ?
The script is as follows, with the media_content changed to protect the guilty.
I do realize that the YT video is now a couple of years old, so may be out of date.
If I ask Alexa to “open hello world”, that seems to work, so I think the Alexa skill is linked ok.
alias: activate_alexa_actionable_notification
description: Activates an actionable notification on a specific echo device
fields:
text:
description: The text you would like alexa to speak.
example: What would you like the thermostat set to?
event_id:
description: Correlation ID for event responses
example: ask_for_temperature
alexa_device:
description: Alexa device you want to trigger
example: media_player.master_bedroom_echo_dot
suppress_confirmation:
description: Set true if you want to suppress 'okay' confirmation
example: "true"
sequence:
- service: input_text.set_value
data_template:
entity_id: input_text.alexa_actionable_notification
value: >-
{"text": "{{ text }}", "event": "{{ event_id }}",
"suppress_confirmation": "{{ suppress_confirmation }}"}
- service: media_player.play_media
data_template:
entity_id: "{{ alexa_device }}"
media_content_type: skill
media_content_id: amzn1.ask.skill.abc
mode: single
1 post - 1 participant