Unfortunately, if the device is turned on when Home Assistant restarts then the Yamaha integration appears to tacks on the area where the device resides resulting in:
media_player.theater_yamaha_theater
Additionally, I have noticed that if I set the zone name it will take the zone name instead when Home Assistant is restarted and the device is on resulting in:
media_player.theater_yamaha_receiver
This is a horrible experience to keep dashboards and automations working. I have three Yamaha receivers and the IDs are always jumping between these values.
Please make it so we can define the uniqueid in the yaml. If that is not possible for whatever reason make it so it will definitively take "Name".yamilize() + "" + "Zone Name".yamilize() or just "Name".yamilize(). The flip flopping around is not working.
What version of Home Assistant Core has the issue?
core-2024.10.1
What was the last working version of Home Assistant Core?
The problem
The Yamaha integration creates entity IDs based on the "Name" value in the yaml. For example, if the yaml looks like this:
This creates a media player entity like this:
media_player.theater_yamaha
Unfortunately, if the device is turned on when Home Assistant restarts then the Yamaha integration appears to tacks on the area where the device resides resulting in:
media_player.theater_yamaha_theater
Additionally, I have noticed that if I set the zone name it will take the zone name instead when Home Assistant is restarted and the device is on resulting in:
media_player.theater_yamaha_receiver
This is a horrible experience to keep dashboards and automations working. I have three Yamaha receivers and the IDs are always jumping between these values.
for my family room device
media_player.family_room_yamaha media_player.family_room_yamaha_family_room media_player.family_room_yamaha_receiver
for my theater device
media_player.theater_yamaha media_player.theater_yamaha_theater media_player.theater_yamaha_receiver
for my gym device
media_player.gym_yamaha media_player.gym_yamaha_gym media_player.gym_yamaha_receiver
Please make it so we can define the uniqueid in the yaml. If that is not possible for whatever reason make it so it will definitively take "Name".yamilize() + "" + "Zone Name".yamilize() or just "Name".yamilize(). The flip flopping around is not working.
What version of Home Assistant Core has the issue?
core-2024.10.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Yamaha
Link to integration documentation on our website
https://www.home-assistant.io/integrations/yamaha/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response