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

Music assistant media player no longer available after voice assistant PE device powered off over night and power back on #134989

Open
limitless-code opened this issue Jan 7, 2025 · 2 comments

Comments

@limitless-code
Copy link

limitless-code commented Jan 7, 2025

The problem

Music assistant media player no longer available as an entity after voice assistant PE device powered off. Even after powering it back on

What version of Home Assistant Core has the issue?

core-2025.1.1

What was the last working version of Home Assistant Core?

core-2024.12

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Music Assistant

Link to integration documentation on our website

https://www.home-assistant.io/integrations/music_assistant/

Diagnostics information

No response

Example YAML snippet

ESPHome builder

substitutions:
  name: home-assistant-voice-xxxx
  friendly_name: Small Bedroom assistant
packages:
  Nabu Casa.Home Assistant Voice PE: github://esphome/home-assistant-voice-pe/home-assistant-voice.yaml
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}
api:
  encryption:
    key: <redacted>


wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

http_request:
  verify_ssl: false

Anything in the logs that might be useful for us?

No response

Additional information

In order to resolve the problem temporarily, I have to remove the unavailable media player from "Home Assistant Media Players" in Music Assistant save, then reload the music assistant integration and re-add it back to "Home Assistant Media Players" in Music assistant.

It may just be that I just need to reload the integration but there seems to be a problem regardless as this has happened every time I turn it off and leave the Voice assistant PE device off over night.

I have also noticed that the entity is now using the friendly _name value converted to all lower case with _ instead of spaces as the enity_id. Which it was not doing before.

I have another voice assistant PE device that rarely gets turned off and it stays available to music assistant.

@home-assistant
Copy link

home-assistant bot commented Jan 7, 2025

Hey there @music-assistant, mind taking a look at this issue as it has been labeled with an integration (music_assistant) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of music_assistant can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign music_assistant Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


music_assistant documentation
music_assistant source
(message by IssueLinks)

@limitless-code limitless-code changed the title Music assistant media player no longer available after voice assistant PE device powered off Music assistant media player no longer available after voice assistant PE device powered off over night and power back on Jan 7, 2025
@limitless-code
Copy link
Author

limitless-code commented Jan 8, 2025

Music-Assistant-mediaplayer

See image above with explanation in the image

For completeness the notes in the image says:

  1. This entity has renamed itself overnight after being powered off. It is now not available in unpowered devices.
  2. I have to unselect the dead media player (in point1) and save "Home Assistant MediaPlayers", restart the "Music Assistant" add-on, media player in point 1 disappears. Then I go back into "Home Assistant MediaPlayers" select the media player (point 2). Now it is in the list of players to choose from and will work until tomorrow or when I have powered the device off for a prolonged period of time perhaps overnight.

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

No branches or pull requests

1 participant