TheMrBooyah / hassio-dirigera-client

4 stars 0 forks source link

[BUG] #14

Open rocrockyroc opened 1 year ago

rocrockyroc commented 1 year ago

Describe the bug After several hours add on generals high CPU usage and no longer operated. The single Ikea light i have can no long be controlled by the Plug in. I seam to be having this problem more so in recent updates. Maybe just me and my setup.

To Reproduce Steps to reproduce the behaviour: just happens

Expected behaviour High CPU usage see screen shot. To fix I have to RESTART Add on.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information): Latest Homeassistant on Raspberry Pie 4 4gig

Smartphone (please complete the following information):

Thank you

Additional context Add any other context about the problem

Screenshot 2023-05-21 at 12 45 29 pm

here.

Screenshot 2023-05-21 at 12 45 48 pm
Alphakilo commented 8 months ago

I have to second this, I see CPU usage of around 80 - 90% on Home Assistant 2023.10.3 (Hassio 11.0. RPi 4 4GB) using Dirigera-client 2023.8.1. It doesn't take hours for me to reproduce, I just need to start the addon 😅

I've configured it to use the Mosquitto broker

Please let me know if you need anything to debug this.

BeLikeJoaquin commented 6 months ago

I also experience this behavior. What can we do to help solve this issue?

TheMrBooyah commented 6 months ago

The issue is most likely related to the underlying java code of the dirigera client. I did raise an issue there but the person that made the client hasn't been active in months now and I'm not into the code enough to debug it myself sadly.

dbgnu76 commented 6 months ago

Me too, have had that problem since the beginning. now i have switched from rpi4 to dell optiflex with debian home assistant and the problem remains. the difference that I have is that the cpu is at 0% instead.

2023-12-19 18:43:03.519 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=cba46c40-0519-445d-8d8b-c49f9c0e61e7, source=hub, time=2023-12-19T17:43:03.518 2023-12-19 18:43:13.520 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=0e2ce974-3476-4be8-86d1-9fa0b18b5d54, source=hub, time=2023-12-19T17:43:13.519 2023-12-19 18:43:23.520 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=19f830e4-16ce-4c17-b5ac-044e93edfca1, source=hub, time=2023-12-19T17:43:23.519 2023-12-19 18:43:33.520 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=61ee1afd-0b6d-4937-8b6e-e60133409384, source=hub, time=2023-12-19T17:43:33.519 2023-12-19 18:43:43.521 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=2ef67bf2-6fb0-4c97-a818-08284c4d03b7, source=hub, time=2023-12-19T17:43:43.520 2023-12-19 18:43:53.521 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=6e41d117-46c5-4925-b16d-2bb603f583e0, source=hub, time=2023-12-19T17:43:53.520 2023-12-19 18:44:03.522 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=cd7b22f9-973c-4bc2-b144-28deed76cd55, source=hub, time=2023-12-19T17:44:03.521 2023-12-19 18:44:13.522 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=eb6303ee-8228-4db2-9a70-e8945d0e0728, source=hub, time=2023-12-19T17:44:13.521 2023-12-19 18:44:23.522 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=d229dad4-20ae-46db-9e27-ae7085baf72b, source=hub, time=2023-12-19T17:44:23.521 2023-12-19 18:44:33.523 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=05fec399-a578-4659-afc1-e017e1d92097, source=hub, time=2023-12-19T17:44:33.522 2023-12-19 18:44:43.523 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=d0d2d039-31c8-4770-a8e9-baedadd7ae89, source=hub, time=2023-12-19T17:44:43.522 2023-12-19 18:44:53.524 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=d603dfb6-426b-4f77-b272-40b8a5e53ebd, source=hub, time=2023-12-19T17:44:53.522 2023-12-19 18:45:03.533 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=4d2d1a10-8ee2-4573-9cb5-228a911b7921, source=hub, time=2023-12-19T17:45:03.531 2023-12-19 18:45:13.524 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=95d79e60-deb1-4b19-8415-0d12df891f76, source=hub, time=2023-12-19T17:45:13.523 2023-12-19 18:45:23.525 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=ee2f3889-283b-482f-84c1-bea52465c97f, source=hub, time=2023-12-19T17:45:23.524 2023-12-19 18:45:33.525 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=208e6674-67f0-4851-98a8-85c73d24c5b3, source=hub, time=2023-12-19T17:45:33.524 2023-12-19 18:45:43.525 DEBUG 66 --- [or-http-epoll-6] d.d.i.dirigera.client.api.WebSocketApi : Received Dirigera event: type=LAST_MODIFIED, id=7f2c4350-7ba4-481e-b10d-d2364ccd71d5, source=hub, time=2023-12-19T17:45:43.524