Skip to content

Failed to call service script/hyperhdr. [Errno 113] Host is unreachable. [LG WebOS, Picap v0.5.0, RP2040) #32

@Nerdpol-droid

Description

@Nerdpol-droid

Version of the custom_component

v0.0.7

Configuration

2025-01-27 16:54:41.487 WARNING (MainThread) [hyperhdr.client] Connection to HyperHDR lost (192.168.178.56:19444) ...
2025-01-27 16:54:41.487 WARNING (MainThread) [hyperhdr.client] Could not close connection cleanly for HyperHDR (192.168.178.56:19444): ConnectionResetError(104, 'Connection reset by peer')

[...]

2025-01-27 18:03:52.399 WARNING (MainThread) [hyperhdr.client] Failed HyperHDR (192.168.178.56:19444) command: {'command': 'componentstate', 'error': 'Errors during specific message validation, please consult the HyperHDR Log', 'success': False, 'tan': 0}

[...]

2025-01-28 20:43:45.269 WARNING (MainThread) [hyperhdr.client] Could not write data for HyperHDR (192.168.178.56:19444): ConnectionResetError('Connection lost')
2025-01-28 20:43:45.270 WARNING (MainThread) [hyperhdr.client] Connection to HyperHDR lost (192.168.178.56:19444) ...
2025-01-28 20:43:45.270 WARNING (MainThread) [hyperhdr.client] Could not close connection cleanly for HyperHDR (192.168.178.56:19444): ConnectionResetError(104, 'Connection reset by peer')


Describe the bug

I am running HyperHDR (21.0.0.0beta1) on LG OLED with Picap 0.5.0 using a Adafruit Itsybitsy RP2040 as driver, following another common guide on GitHub. I have installed the custom integration using HACS.

I am facing an issue where HyperHDR Home Assistant integration is unable to re-establish connection once the TV has been turned off for a while, therefore disconnecting from Wifi, rendering HyperHDR, RP2024 plugged in the USB etc. unavailable through the network.

Error is: "Failed to call service script/hyperhdr. [Errno 113] Host is unreachable."

The only way to re-establish connection when TV was turned off a while is to restart Home Assistant completely. Turning on the TV only will not bring back the entities in Home Assistant. Reloading the integration config does not solve it and requests a full Home Assistant reboot to take effect.

Is there any way to fix or work around this behaviour?

Debug log




  File "/usr/local/lib/python3.13/site-packages/hyperhdr/client.py", line 1013, in async_send_clear
    return await self._async_send_json(data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/hyperhdr/client.py", line 463, in _async_send_json
    await self._writer.drain()
  File "/usr/local/lib/python3.13/asyncio/streams.py", line 374, in drain
    raise exc
  File "/usr/local/lib/python3.13/site-packages/hyperhdr/client.py", line 568, in _receive_task_loop
    while await self._async_receive_once():
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/hyperhdr/client.py", line 608, in _async_receive_once
    resp_json = await self._async_safely_read_command(use_timeout=False)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/hyperhdr/client.py", line 485, in _async_safely_read_command
    resp = await asyncio.wait_for(future_resp, timeout=timeout_secs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
    return await fut
           ^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/streams.py", line 562, in readline
    line = await self.readuntil(sep)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/streams.py", line 677, in readuntil
    await self._wait_for_data('readuntil')
  File "/usr/local/lib/python3.13/asyncio/streams.py", line 539, in _wait_for_data
    await self._waiter
  File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 1005, in _read_ready__data_received
    data = self._sock.recv(self.max_size)
OSError: [Errno 113] Host is unreachable
<!-- To enable debug logs check this https://www.home-assistant.io/components/logger/ -->

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions