Yamaha MusicCast integration vs media_player

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.
Y2
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

That is not a MusicCast capable av receiver.

Hi Tom_I.
Thanks for the reply. So as I understand it, MusicCast integration only works with receivers that type. I ask you just for curiosity, I am not an expert, but the R-N500 receiver also uses the YNCA protocol. Does this make me think that the MusicCast integration manages the receivers in any other way? Thanks for your attention

There’s nothing substantial. MusicCast is just Yamahas newer api. Network receivers is the old api. I have both.

The newer api does tell you more about what’s playing and you can play from more sources. That’s about it. You still need a receiver that has MusicCast.

Thanks for the reply