Hello. Ive been trying to get a routine to send a command to my alexa devices as if i was talking to it. I have my devices integrated already. Just struggling with sending commands. And not interested in to TTS
Thank you
Hello. Ive been trying to get a routine to send a command to my alexa devices as if i was talking to it. I have my devices integrated already. Just struggling with sending commands. And not interested in to TTS
Thank you
With the Alexa Media Player HACS integration you can do this:
service: media_player.play_media
data:
media_content_id: set alarm for 6 am
media_content_type: custom
target:
entity_id: media_player.bedroom_2
Is this still possible? Where do I have to use the code?
(Sorry for the misclicked deletion).
Hi @TomberWolf
You can play with this in Developer Tools. Go to Developer tools → ACTIONS → GO TO YAML MODE (button). Then paste in the above code. You’ll need to change the entity_id
on the last line to reflect the name of the echo device you want to use. You can change the instruction on the media_content_id:
line too.
Once you are happy you can copy your code and add it to an automation or script.
Within your automation, click on ADD ACTION. Select anything (Device will do). Then on the 3-dot menu select Edit in YAML. Remove any code that is there. Now paste in your code from above.
Thank you very much! I haven’t worked with the Developer Tools yet. That was the right hint.
Developer Tools is great for playing with stuff, without having to create automations or scripts.
Be aware that the Alexa Media Player integration referenced above is on life support and has broken frequently in the past year.
I suggest you help out by testing the new integration in your free time so that you will continue to benefit from this functionality.
It’s been pretty decent the past few months. knock on wood
As always when you have to rely on cloud services.
I always try to have a fallback solution up my sleeve.