Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yamaha integration doesn't work after 2022.7 update #74981

Closed
Draghmar opened this issue Jul 11, 2022 · 4 comments
Closed

Yamaha integration doesn't work after 2022.7 update #74981

Draghmar opened this issue Jul 11, 2022 · 4 comments

Comments

@Draghmar
Copy link

Draghmar commented Jul 11, 2022

The problem

I have Yamaha integration set through configuration.yaml for my RX-V673. After 2022.7 it stopped working with one error in the log.

What version of Home Assistant Core has the issue?

2022.7.x

What was the last working version of Home Assistant Core?

2022.6.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

media_player, platform: yamaha

Link to integration documentation on our website

https://www.home-assistant.io/integrations/yamaha/

Diagnostics information

No response

Example YAML snippet

media_player:
  - platform: yamaha
    zone_ignore:
      - "Zone_2"

Anything in the logs that might be useful for us?

Logger: homeassistant.components.media_player
Source: components/yamaha/media_player.py:127
Integration: Media Player (documentation, issues)
First occurred: 09:59:13 (1 occurrences)
Last logged: 09:59:13

Error while setting up yamaha platform for media_player
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 250, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/yamaha/media_player.py", line 150, in async_setup_platform
    receivers = await hass.async_add_executor_job(_discovery, config_info)
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/yamaha/media_player.py", line 127, in _discovery
    for recv in rxv.find():
  File "/usr/local/lib/python3.10/site-packages/rxv/__init__.py", line 19, in find
    return [RXV(**ri._asdict()) for ri in ssdp.discover(timeout=timeout)]
  File "/usr/local/lib/python3.10/site-packages/rxv/ssdp.py", line 68, in discover
    m = re.search(r"LOCATION:(.+)", res.decode('utf-8'), re.IGNORECASE)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

Additional information

No response

@probot-home-assistant
Copy link

yamaha documentation
yamaha source
(message by IssueLinks)

@Draghmar
Copy link
Author

Draghmar commented Aug 4, 2022

Ok, that's weird. I had to set host in order for this to work again. It didn't need that before. Don't know why though, as it's quite logical that I should point HA where AVR is...I set this originally long, long time ago, at the beginning of learning HA and I don't remember how exactly it started to work back then. Anyway, feel free to close it if you feel there's nothing to add here or leave it if you think the optional host shouldn't be optional. ;)

media_player:
  - platform: yamaha
    host: !secret ip.avr
    zone_ignore:
      - "Zone_2"

@ColdFire1985
Copy link

ColdFire1985 commented Oct 13, 2022

Hi i think there is the same issue with version: Home Assistant 2022.10.3

`Integration causing the issue
media_player, platform: yamaha

`Example YAML snippet

media_player:
  - platform: yamaha
    host: 192.168.2.110

Put host ip directly to the config ;-)

Log maybe helpful

First occurred: 13:13:01 (3 occurrences)
Last logged: 13:19:56

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)`

XML from receiver

`attached
desc.zip

What was the last working version of Home Assistant Core?
2022.10.2

Hope this helps.

UPDATE_ Fixed with Release 2022.10.4 - October 14

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 23, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants