Hello everyone.
I have integrated a Yamaha RN500 receiver into HA for a long time.
This is the configuration in media_player.yaml:
- platform: yamaha
host: 192.168.1.161
name: yamaha_rn500
so I have the receiver as a media player
Works well.
I later discovered that there is a Yamaha MusicCast integration.
I tried to use it but when I enter the IP address I don’t get any results.
On the page: Yamaha Network Receivers - Home Assistant, my model is not explicitly mentioned as supported but there is a more that gave me hope.
Now what I don’t explain, why does HA handle the receiver well with the configuration in the yaml file and not as integration?
Exploring the log, I found these two errors:
Logger: aiomusiccast.pyamaha
Source: components/yamaha_musiccast/config_flow.py:48
First occurred: 00:20:33 (2 occurrences)
Last logged: 00:22:43
Failed to generate JSON from
and
Logger: homeassistant.components.yamaha_musiccast.config_flow
Source: components/yamaha_musiccast/config_flow.py:48
Integration: MusicCast (documentation, issues)
First occurred: 00:20:33 (2 occurrences)
Last logged: 00:22:43
Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/yamaha_musiccast/config_flow.py", line 48, in async_step_user
info = await MusicCastDevice.get_device_info(
File "/usr/local/lib/python3.10/site-packages/aiomusiccast/musiccast_device.py", line 98, in get_device_info
return await device.request_json(System.get_device_info())
File "/usr/local/lib/python3.10/site-packages/aiomusiccast/pyamaha.py", line 253, in request_json
return await self.build_json(response)
File "/usr/local/lib/python3.10/site-packages/aiomusiccast/pyamaha.py", line 234, in build_json
return json.loads(text)
File "/usr/local/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Thanks