Onkyo/Pioneer media player errors in 2023.05

Is anyone else seeing errors in their log for the Onkyo integration?

2023-05-08 16:45:39.902 ERROR (MainThread) [homeassistant.components.media_player] onkyo: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 521, in _async_add_entity
    await entity.async_device_update(warning=False)
  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 295, in update
    status = self.command("system-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.

I wasn’t getting these errors before, but just eyeballing the stack-trace, I can see that self.command("system-power query") isn’t the command that I would use for the onkyo utility. It should be system-power=query.

homeassistant:/config# onkyo --host 10.1.1.71 system-power=query
unknown-model: system-power = on
homeassistant:/config# onkyo --host 10.1.1.71 system-power query
Error: Need at least command and argument

Never mind, this one must have been a glitch. A restart fixed it. Weird.

Known

1 Like

Nice. The worst part was that instead of just being marked as unavailable, the entity wasremoved from both HA and my Google home!

Arrrgh…this one is super annoying. It’s intermittent on restarts whether my receiver is added to or removed from my Google Home. Can’t wait for this fix to be released!