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

'NoneType' object has no attribute 'display_name' #3789

Open
2 tasks done
shaiger opened this issue Mar 28, 2025 · 4 comments
Open
2 tasks done

'NoneType' object has no attribute 'display_name' #3789

shaiger opened this issue Mar 28, 2025 · 4 comments
Labels
bug Something isn't working Snapcast

Comments

@shaiger
Copy link

shaiger commented Mar 28, 2025

What version of Music Assistant has the issue?

2.5.0b18

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

  • Yes

The problem

I cannot play TTS on Snapcast players. Everything seems to work fine on Google cast devices.
I get the following error: 'NoneType' object has no attribute 'display_name'

How to reproduce

Either from an automation, or by using the dev console (actions).
Action YAML:

action: tts.speak
target:
  entity_id: tts.google_cloud
data:
  cache: false
  media_player_entity_id: media_player.office_display_cast
  message: Using a Snapcast player

Music Providers

N/A (TTS)

Player Providers

Snapcast

Full log output

MA Logs.txt

Additional information

  • Everything seems to work fine on Google Cast devices.
  • Playing mp3 from local storage works, the problem is limited to TTS
  • I tried different TTS engines including piper (on device)
    I suspect this has started happening at the same time Snapcast players started to explicitly refuse accepting pause commands but I am not sure.
    The problem is very easy to reproduce, and I am on the beta channel - more than happy to test potential fixes.

What version of Home Assistant Core are your running

core-2025.3.4

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Alternative

Have you included ALL of the information specified in the Troubleshooting FAQ or explained why you cannot

  • Yes
@shaiger shaiger added the triage label Mar 28, 2025
@OzGav
Copy link
Contributor

OzGav commented Mar 28, 2025

As requested in the template instructions don’t paste walls of text, and that isn’t the full MA log. Please edit your post to remove what you have and replace with what we need.

@shaiger
Copy link
Author

shaiger commented Mar 28, 2025

Hi @OzGav - sorry for the misunderstanding.
I have removed the content initially posted. The attached log file is slightly sanitized (family member names, ip addresses, etc).

@OzGav OzGav added Snapcast bug Something isn't working and removed triage labels Mar 28, 2025
@OzGav
Copy link
Contributor

OzGav commented Mar 31, 2025

This is confirmed and will be looked at soon.

@ronluna
Copy link

ronluna commented Apr 9, 2025

Having the same problem when using music_assistant.play_announcement

data:
  url: https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3
  announce_volume: 5
  use_pre_announce: true
action: music_assistant.play_announcement
target:
  entity_id: media_player.ma_living_room_sc6_c1

@marcelveldt marcelveldt moved this from NEXT to Done/verify in Music Assistant (V2) backlog Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Snapcast
Projects
Status: Done/verify
Development

No branches or pull requests

3 participants