Is it possible to use different languages in automations with notify.alexa_media service?
I am using italian language but i some automations i want to use thai language. If it is possible, how?
IMO there is no config. You just write it, e.g. khob khun krab instead of using ขอบคุณคับ
But how it sounds when Alexa says it depends on the language Alexa is set to.
For example when it is set to German, English sentences often sounds awful and vice versa.
Not sure the princess would like that
In the documentation it says that the alexa notification service does not support ‘whole house audio’. Is this the same thing as speaker groups created in the Alexa app?
I want to achieve synchronised audio notifications if possible.
Make sure you have an everywhere speaker group in the Alexa app
Make sure you have a media_player.everywhere entity in HA and that it’s not disabled or excluded. If you enable the debug logging on alexa_media.helpers and search for Excluding device, you can discover if any device is being filtered out of AMP.
Hi can Alex play URL streams like this one: https://somafm.com/secretagent.pls. If so then what is the correct way to configure the option? I read through the Wiki and searched this post but did not find any reference to playing URL streams. Thanks in advance for any suggestions.
You shouldn’t have to create it, but you should rule it out as a possible cause.
This service should have been created automatically by Alexa Media Player. However, it is possible it wasn’t created if the everywhere speaker group either didn’t eist in the Alexa app or it was excluded during configuration of the integration.
From what I have tried, generally you can only stream from sources that have a skill. For SomaFM, if you enable their Alexa skill you can then use a custom command in AMP:
service: media_player.play_media
target:
entity_id: media_player.my_dot
data:
media_content_type: custom
media_content_id: ask soma fm to play secret agent
Is there a way to create a lovelace button that will send the equivalent of the voice command “alexa play music” where she just selects your favorite radio station or your personalized playlist?
Hi,
I never excluded anything AMP created. It’s just not there… And I never ever saw such a group in Alexa. All Alexa groups I had to create myself.
So I’ll stick to the “AnnounceAll” group I created myself - by this I have more control anyway.
I just noticed this error when restarting HA. Any ideas? I thought it may have been because the state is actually ‘true’, lower case, but that wasn’t it either.
Logger: homeassistant.helpers.template
Source: helpers/template.py:1779
First occurred: 10:17:59 AM (4 occurrences)
Last logged: 10:18:09 AM
Template variable warning: No first item, sequence was empty. when rendering '{{ expand('group.echos') | selectattr('attributes.last_called','eq',True) | map(attribute='entity_id') | first }}'
That warning it generated because, at startup when the sensors are rendered, the last_called attributes of the echo media_player entities isn’t yet defined. You can get rid of the warnings by adding an availability to your sensor configuration. I haven’t tested this, but I think it should work:
###configuration.yaml
template:
- sensor:
- name: last_alexa
state: >
{{ expand('group.echos') | selectattr('attributes.last_called','eq',True) | map(attribute='entity_id') | first }}
availability: >
{{ expand('group.hf_echos') | selectattr('attributes.last_called','eq', True) | first is defined }}
type: button
name: Punk
tap_action:
action: call-service
service: media_player.play_media
target:
entity_id: media_player.everywhere
data:
media_content_type: custom
media_content_id: play punk music on everywhere group
But I keep getting this error: Failed to call service media_player/play_media. required key not provided @ data['media_content_type']