Although I’m having an issue when having more than one Musiccast device. I get the following error:
2017-09-12 16:27:31 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform yamaha_musiccast
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/lib/python3.4/asyncio/tasks.py", line 372, in wait_for
return fut.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/yamaha_musiccast.py", line 56, in setup_platform
receiver = pymusiccast.McDevice(host, udp_port=port)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pymusiccast/__init__.py", line 148, in __init__
self.initialize()
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pymusiccast/__init__.py", line 152, in initialize
self.initialize_socket()
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pymusiccast/__init__.py", line 169, in initialize_socket
raise error
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pymusiccast/__init__.py", line 167, in initialize_socket
self._socket.bind(('', self._udp_port))
OSError: [Errno 98] Address already in use
I am using hassio and tried to create and addon with your code to get it working on my side with no luck. I can provide 4 devices: one Receiver, two WX-030 and one ISX-18D. All music cast devices.
I’m pretty new to hassio and would need a bit of help to get started, then I could help testing and fixing bugs.
I’ve got a Yamaha AV receiver that is Musiccast capable, The Main Zone works fine and I can control it well enough from scripts and by automation etc, but I want to be able to control the other ‘Rooms’ in Musiccast that are fed by the Zone 2 config from the the AV Receiver.
From what I can see of the python code it only does a single scan for the main device, and doesn’t loop through the Receiveres zones. The Yamaha receiver component appearst to do zones but I wanted to get Musiccast working. I may have to wait for Musiccast Alexa intergration (due next month) but wanted to see if anyone else was working on this. I can read the code, but writing it would be a bigger step than I want to take at this point in time.
Any thoughts for others that have gone down this Musiccast thread would be more than welcome,
Is there a way to get in touch with the developer of that component code?
Sorry to resurrect this, but has anyone here been able to use Text To Speech to a MusicCast device? Or even able top play a MP3 to a WX-030 or RX-V5xx? I am desperately trying to get audio out to these devices but no idea where to start
Hi, I’m new to Home Assistant and try to use the Yamaha Network Receiver component to connect my RX-V771.
Works almost perfect but a soon as I switch manually to the input TUNER the component throws the following error:
Log Details (ERROR)
Thu Feb 01 2018 19:17:25 GMT+0100
Update for media_player.yamaha_receiver fails
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 201, in async_update_ha_state
yield from self.async_device_update()
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 308, in async_device_update
yield from self.hass.async_add_job(self.update)
File “/usr/lib/python3.6/asyncio/futures.py”, line 332, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.6/asyncio/tasks.py”, line 250, in _wakeup
future.result()
File “/usr/lib/python3.6/asyncio/futures.py”, line 245, in result
raise self._exception
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3.6/site-packages/homeassistant/components/media_player/yamaha.py”, line 159, in update
self._play_status = self.receiver.play_status()
File “/usr/lib/python3.6/site-packages/rxv/rxv.py”, line 437, in play_status
playing = (res.find(".//Playback_Info").text == “Play”)
AttributeError: ‘NoneType’ object has no attribute ‘text’
Anyone here with a clue what the problem could be?
I’ve got a Yamaha RXV-3900 and it won’t show up, is this too old? It was a very high end receiver in it’s day (2009) and I can control it from a web interface but regardless if I put host IP address in or not it will not be discovered in HA.
Yes, I already tried the first one and still have it in my configuration.yaml file. I’ve tried with and without IP Address. I use it straight out of the box with Simple Control (roomie remote) without any issues over the network. My receiver doesn’t have Music Cast so I won’t even try the first one.
I have 4 music cast devices and all work ok until I restart home assistant. The error Address already in use occurs. After I restart entire system (in my case it is a jail in FreeNAS) the connection works ok again. Seems like the tcp connections are kept open even after home assistant is closed so can’t use the same ports after it starts again until the operating system (jail in my case) is restarted.