dirigera_platform icon indicating copy to clipboard operation
dirigera_platform copied to clipboard

Plugin stops working every day around 08:30 AM

Open N-Hertstein opened this issue 11 months ago • 4 comments

Weird issue. Every day around 8:30 AM the integrations stops working. I'm unable to change states of lights and plugs (all tradfri, have had them for a while), motion sensors no longer show if motion was triggered (also tradfri).

I can fix it by reloading the hub and waiting for a bit but that's not really great. Reloading the config does not work as I tried the following automation:

id: '1738085376426'
alias: Reload IKEA Dirigera
description: ''
triggers:
  - trigger: time
    at: '00:00:00'
  - trigger: time
    at: '12:00:00'
conditions: []
actions:
  - action: homeassistant.reload_config_entry
    metadata: {}
    data: {}
    target:
      device_id: ffcb88abd14a36f768e187f8a646a91b
mode: single

I also attempted manually triggering this automation when things stopped functioning today. I have to manually reload the hub as shown below every day.

Image

Currently I am unable to dump data as it gives an error. Will update if that changes.

EDIT: I'm running Home assistant as the official app on Truenas Scale 24.10.1 App version: 2025.1.4

EDIT2: Logs after recent reboot, will update tomorrow 8:30 home-assistant_2025-01-29T09-33-48.399Z.log

N-Hertstein avatar Jan 29 '25 09:01 N-Hertstein

can you please enable debug and send me the debug lines when this error occurs, that would help

sanjoyg avatar Mar 08 '25 05:03 sanjoyg

I have exactly the same problem, needs to reload the integration every day because it stops working! Also dumping data doesn't work! Problem starten after integrating a second IKEA dirigera hub

vdbosch avatar Mar 08 '25 11:03 vdbosch

Not sure if usefull, have have these daily in the logs of HA

2025-03-11 23:56:17.924 WARNING (Thread-9) [custom_components.dirigera_platform.hub_event_listener] Failed to create listener or listener exited, will sleep 10 seconds before retrying 2025-03-12 02:55:49.613 ERROR (Thread-6) [pychromecast.socket_client] [Nest Audio woonkamer(192.168.178.53):8009] Failed to connect to service HostServiceInfo(host='192.168.178.53', port=8009), retrying in 5.0s 2025-03-12 03:16:29.421 ERROR (Thread-4) [pychromecast.socket_client] [Nest Mini kantoor(192.168.178.239):8009] Failed to connect to service HostServiceInfo(host='192.168.178.239', port=8009), retrying in 5.0s 2025-03-12 03:17:31.730 WARNING (Thread-9) [custom_components.dirigera_platform.hub_event_listener] Failed to create listener or listener exited, will sleep 10 seconds before retrying 2025-03-12 03:59:36.423 ERROR (Thread-7) [pychromecast.socket_client] [Google TV(192.168.178.198):8009] Error reading from socket: socket connection broken 2025-03-12 03:59:36.430 ERROR (Thread-7) [pychromecast.socket_client] [Google TV(192.168.178.198):8009] Failed to connect to service HostServiceInfo(host='192.168.178.198', port=8009), retrying in 5.0s 2025-03-12 06:50:22.347 WARNING (Thread-9) [custom_components.dirigera_platform.hub_event_listener] Failed to create listener or listener exited, will sleep 10 seconds before retrying 2025-03-12 08:51:25.144 WARNING (Thread-9) [custom_components.dirigera_platform.hub_event_listener] Failed to create listener or listener exited, will sleep 10 seconds before retrying 2025-03-12 09:57:08.159 WARNING (Thread-9) [custom_components.dirigera_platform.hub_event_listener] Failed to create listener or listener exited, will sleep 10 seconds before retrying 2025-03-12 10:37:55.805 WARNING (Thread-9) [custom_components.dirigera_platform.hub_event_listener] Failed to create listener or listener exited, will sleep 10 seconds before retrying

Ringgss avatar Mar 12 '25 11:03 Ringgss

Looking at the log it seems something is making the connection to the hub disconnect frequently. Looks like its happening to other integrations too

sanjoyg avatar Mar 12 '25 16:03 sanjoyg