I would like to access a skill through the home assistant. I use alexa media player, everything is installed. I saw that there is a code available but I couldn’t understand how to activate it through HA.
- alias: Trigging a skill.
initial_state: "on"
trigger:
platform: state
entity_id: input_boolean.start_my_car
to: "on"
condition: []
action:
- service: media_player.play_media
data:
media_content_id: <Skill ID>
media_content_type: skill
target:
entity_id: media_player.my_echo_dot
I entered my SKILL ID and I still couldn’t activate it.
II’m trying to activate the skill through node red
Just to make sure I understand… you want to give a verbal command to an Alexa device which triggers Node-RED, then Node-RED triggers a skill on the Alexa device?
That’s not going to work… the wake word by itself won’t even update the last_called attribute of the device. The closest option I can think of would be at least a 1 word command after the wake word to trigger an Alexa routine which either triggers the skill directly or, if NR input is needed for the skill, acts on a helper that NR watches.
To whom? An echo device?
If you are telling Alexa to tell Node Red to trigger an Alexa Skill, that why don’t you just trigger the Alexa skill from Alexa?
If you want Alexa to treat a command from Home Assistant AS IF you spoke the command into an Echo device, then you make a service call. For example to get Alexa to tell the time on my Echo Dot:
service: media_player.play_media
data:
media_content_id: "What time is it"
media_content_type: custom
target:
entity_id: media_player.my_echo_dot
To do this FROM Node-Red, you use the call_service node: