Skip to content
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

[Feature Request] Check if media_player is exposed to i.e. Assist and if an Alias can be matched #4

Open
ddppddpp opened this issue Jan 8, 2025 · 2 comments

Comments

@ddppddpp
Copy link

ddppddpp commented Jan 8, 2025

To the best of my understanding, this blueprint tries to find a matching media_player entity looking into the list of entities provided by the Music Assistant integration. While this is generally working as expected it doesn't respect if the entity has been exposed to Assist (set via Settings -> Voice Assistants -> Expose) or not, nor does it check for the Aliases.

@nikito
Copy link
Collaborator

nikito commented Jan 13, 2025

I think an issue here is that Automations/Scripts aren't able to use Device Aliases from what I remember. Think this has been an ongoing request in HA, as I have seen others try to write scripts and automations like this expecting Aliases to work.

As far as checking if the device is exposed to voice assist or not, I don't really see a way to check that from an automation or script. There's no attribute I can see on media_player entity that tells you this information.

EDIT: Just to add to the above, if anyone knows a way to accomplish these we'd very much like to hear about it! I just personally haven't seen a solution to this within automations/scripts, and searches I have performed to look into it aren't yielding many answers unfortunately. As far as I can tell, only Intent Scripts seem to have awareness of Aliases and whether or not something is exposed to assist.

@TheFes
Copy link
Collaborator

TheFes commented Jan 21, 2025

Yes, that is correct. Only the built in intents or custom sentences are able to use the aliases. It would be great if we could have access the aliases as well using templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants