Hi again,
first a big thanks for your help, brought me closer to a solution, and thank you for your work on this wonderful integration.
I have four Yamaha RXV-679, running HA 2021.8.3 with aiomusiccast-0.9.1,
I am still trying to get the formerly working group functionality (with mini-media-player) back again.
Current release of mini-media-player cannot use media_player's join, so I had to build it from the current dev tree at commit a3a4a69.
However, I had added the Yamaha's with their dns name in config flow.
When I try to join a mc client, the master stops playing for a second or two, and HA tells:
2021-09-06 19:50:27 WARNING (MainThread) [aiomusiccast.musiccast_device] Coordinator of 172.16.2.131 did not receive the expected group data update via UDP. Fetching manually.
2021-09-06 19:50:28 WARNING (MainThread) [aiomusiccast.musiccast_device] Coordinator of 172.16.2.131 did not receive the expected group data update via UDP. Fetching manually.
2021-09-06 19:50:28 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139976403338480] 172.16.2.131: Failed to extent group by clients ['rxv679-wohnen.in.edevau.net']
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/usr/lib/python3.9/site-packages/homeassistant/core.py", line 1492, in async_call
task.result()
File "/usr/lib/python3.9/site-packages/homeassistant/core.py", line 1527, in _execute_service
await handler.job.target(service_call)
File "/usr/lib/python3.9/site-packages/homeassistant/helpers/entity_component.py", line 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/lib/python3.9/site-packages/homeassistant/helpers/service.py", line 658, in entity_service_call
future.result() # pop exception if have
File "/usr/lib/python3.9/site-packages/homeassistant/helpers/entity.py", line 843, in async_request_call
await coro
File "/usr/lib/python3.9/site-packages/homeassistant/helpers/service.py", line 695, in _handle_entity_call
await result
File "/usr/lib/python3.9/site-packages/homeassistant/components/yamaha_musiccast/media_player.py", line 756, in async_join_players
await self.coordinator.musiccast.mc_server_group_extend(
File "/usr/lib/python3.9/site-packages/aiomusiccast/musiccast_device.py", line 831, in mc_server_group_extend
await self.mc_server_group_extend(zone, client_ips, group_id, distribution_num, False)
File "/usr/lib/python3.9/site-packages/aiomusiccast/musiccast_device.py", line 833, in mc_server_group_extend
raise MusicCastGroupException(
aiomusiccast.exceptions.MusicCastGroupException: 172.16.2.131: Failed to extent group by clients ['rxv679-wohnen.in.edevau.net']
When I set up the Yamaha's int the config flow with their IP adresses instead of their hostname, it seems to work, HA only says in the log:
2021-09-06 19:53:10 WARNING (MainThread) [aiomusiccast.musiccast_device] Coordinator of 172.16.2.131 did not receive the expected group data update via UDP. Fetching manually.
DNS is set up properly, HA is able to resolve in both directions:
root@g18-hass:/etc/homeassistant/www # host rxv679-wohnen.in.edevau.net
rxv679-wohnen.in.edevau.net has address 172.16.2.136
root@g18-hass:/etc/homeassistant/www # host 172.16.2.136
136.2.16.172.in-addr.arpa domain name pointer rxv679-wohnen.in.edevau.net.
root@g18-hass:/etc/homeassistant/www # host rxv679-werkstatt.in.edevau.net
rxv679-werkstatt.in.edevau.net has address 172.16.2.131
root@g18-hass:/etc/homeassistant/www # host 172.16.2.131
131.2.16.172.in-addr.arpa domain name pointer rxv679-werkstatt.in.edevau.net.
The HA host is not on the same VLAN with the Yamahas (different building), all affected Yamahas share the same network, UDP traffic is allowed.
Would you say the it is better practice to use ip adresses instead of the host names?
Should I worry about the UDP message?
Thanks for your help.