home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.16k stars 29.83k forks source link

Onkyo Receiver entities for zone2 and zone3 disappear #85891

Closed toolCollection92 closed 1 year ago

toolCollection92 commented 1 year ago

The problem

I have some issue with the Onkyo integration. If the receiver is powered on during Home Assistant bootup, it creates all entities (main zone, as well as zone2 and 3) and everything works fine. If, however (after everything is already set up and running) Home Assistant reboots and Onkyo is powered off, it deletes the entities. This would normally not be too big of an issue (just power it on and reboot) but in my case, Home Assistant powers the Onkyo via GPIO -> Relays. This means, at bootup all appliances are being powered off.

I can't see the option to pwemanently enable zone2 through the settings in the documentation.

What version of Home Assistant Core has the issue?

core-2023.1.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Onkyo

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.onkyo.media_player
Source: components/onkyo/media_player.py:231
Integration: onkyo ([documentation](https://www.home-assistant.io/integrations/onkyo), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+onkyo%22))
First occurred: 13. Januar 2023 um 21:06:01 (1 occurrences)
Last logged: 13. Januar 2023 um 21:06:01

Unable to connect to receiver at 192.168.178.77

Additional information

No response

home-assistant[bot] commented 1 year ago

onkyo documentation onkyo source

rubinho76 commented 1 year ago

Also can confirm this issue ((TX-NR-656 "Network-Standby Mode off")

reotto613 commented 1 year ago

Confirmed with Onkyo TX-NR555 E415CA as well. No Zone 2 shows up when it did previously.

TomBrien commented 1 year ago

I presume the following error is related.

Logger: homeassistant.helpers.entity
Source: components/onkyo/media_player.py:282 
First occurred: 13:46:34 (191 occurrences) 
Last logged: 18:03:56

Update for media_player.livingroomreceiver_zone_2 fails
Update for media_player.livingroomreceiver fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 554, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 784, in async_device_update
    await coro
  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/onkyo/media_player.py", line 469, in update
    status = self.command(f"zone{self._zone}.power=query")
  File "/usr/src/homeassistant/homeassistant/components/onkyo/media_player.py", line 282, in command
    result = self._receiver.command(command)
  File "/usr/local/lib/python3.10/site-packages/eiscp/core.py", line 480, in command
    response = self.raw(iscp_message)
  File "/usr/local/lib/python3.10/site-packages/eiscp/core.py", line 470, in raw
    return filter_for_message(self.get, iscp_message)
  File "/usr/local/lib/python3.10/site-packages/eiscp/core.py", line 260, in filter_for_message
    candidate = getter_func(0.05)
  File "/usr/local/lib/python3.10/site-packages/eiscp/core.py", line 443, in get
    ready = select.select([self.command_socket], [], [], timeout or 0)
TypeError: argument must be an int, or have a fileno() method.
issue-triage-workflows[bot] commented 1 year ago

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.

venom85 commented 1 year ago

Can this be reopened? I'm still having the same issue with Home Assistant 2023.8.3. If I restart HA (doesn't require a full reboot, just a Core restart) with the receiver off, the extra zone entities are deleted. If I turn the receiver on and restart, they come back.