I have a routine that is triggered by a voice message as follows:
It is working when simply speaking to Alex (including Alexa saying “all done”):
However, it is not working when called from Home Assistant:
service: media_player.play_media
target:
entity_id: media_player.front_bedroom_echo
data:
media_content_type: custom
media_content_id: change to energetic
Running in Developer tools results in a call to Alexa but nothing happens as it does not trigger the routine:
I did also try from an automation and that prompted responses from Alexa such as " I didn’t find that channel" or “I can’t help you with that”.
alias: Govee - call Alexa scene routine
description: ""
triggers:
- trigger: state
entity_id:
- input_select.select_govee_scene
conditions: []
actions:
- action: input_text.set_value
target:
entity_id: input_text.alexa_govee_routine_name
data:
value: >-
{% set routine_name = "change to " + trigger.to_state.state %}
{{ routine_name }}
- action: media_player.play_media
metadata: {}
data:
media_content_id: "{{ states('input_text.alexa_govee_routine_name') }}"
media_content_type: custom
target:
entity_id: media_player.front_bedroom_echo
mode: single
Trace is:
Executed: 8 December 2024 at 15:34:53
Result:
params:
domain: media_player
service: play_media
service_data:
media_content_id: change to energetic
media_content_type: custom
entity_id:
- media_player.front_bedroom_echo
target:
entity_id:
- media_player.front_bedroom_echo
running_script: false
I have tried inserting Alexa or Turn On in the text but to no avails. Any ideas?