-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notify.alexa_media does not work with groups (or any non alexa_media entities). #2801
Comments
AMP hooks itself into the HA Where the wiki mentions "Guest Room", that's not an HA area but is the friendly name of an echo device or an Alexa speaker group. |
The same problem for me ( since approx. 1 week). |
Do you have the speaker group setup in the Alexa app? In the app go to Devices, then click the plus icon in the top right then choose Combine Speakers, then select Multi-room music, pick the Echos you want to be in the group, then choose a name and save (and apologies if you already knew how to do it, i try never to assume). The new Multi-room speaker group will then appear as its own media player in HA. Is the idea that:
|
Hi, Groups are set up with the respective devices in the Alexa app (e.g. Everywhere contains all devices). The whole thing has been used for months in various automations where notifications
are sent to all devices.
Only the groups no longer do. I also see a http/code: 200 in log, so it look that the plugin had a clean connection to Amazon service. I think for this project it would only be important to know if it is the HACS plugin or Amazon. that I can no longer get all devices to run simultaneously via voice control (Alexa, play music everywhere). |
In my case the groups I am referring to are from home assistant, so not related to amazon (in my case at least).
It would be nice if the wiki would clarify the ambiguity of groups. As the wiki does state: "target:" - The target Alexa devices. This can be the Friendly Name, Serial Number, entity_id, `or Home Assistant Group.` ** |
Home Assistant groups are not Areas. I believe groups predate areas and were legacy entities defined in YAML. They can now be created in the UI via Helpers: The other way would be to create speaker group(s) in Alexa which would then be discovered by AMP as unique |
I think WHA groups only support |
I think the most sustainable way to do this, would be to carry out the expansion, since it works with any concept of groups within HA (floors, areas, device and what not). I will try to do it and can share here, maybe can be incorporated into the addon somehow |
Got a solution! I changed the action in automation. Works:
Stopped Working:
So I changed my automations... |
IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure. ✅
According to the wiki on tts, I should be able to target rooms, serialnumbers (for echo device for example) and other groupings, but it does not seem to work, except if the target is the alexa_media entity itself.
I crated a script to facilitate TTS action via a button in the dashboard and this is how it looks:
It was already tricky to get this to work at all, because the direct output of a target selector has an extra level in the result. Example:
Ended up with that ugly templating, difficult to figure out, because the result of the selector has a different type if it is a single item (string), or multiple (dictionary).
Having the right template in place, I was able to have it output the way the integration expects it (or at least matches the format in the example):
But that doesn't work. My assumption is that it would do an expansion, similar to what the UI does.
If I do expand in the UI (have to expand twice, as the echo device directly also doesn't work. room -> device -> entity), then it works:
Is there something I am missing here?
Either way, thanks for the fine work on this integration. Have been looking into this a long time for a project, integrating directly to it, before I decided to use HA, which brought me here.
To Reproduce
Expected behavior
I expected that my message would have been spoken by all echo devices within the specified areas.
Screenshots
Included in the description
System details
Core 2025.1.2
Supervisor 2024.12.3
const.py
or HA startup log): 5.3.0 (UI value is the same as the log)pip show alexapy
in homeasssistant container or HA startup log): 1.29.5Debug Logs (alexa_media & alexapy)
Please provide logs.
No logs for alexapy for this action were in the output.
Additional context
N/A
The text was updated successfully, but these errors were encountered: