pdwonline / youless

Home Assistant custom sensor for youless
2 stars 11 forks source link

Updating youless sensor took longer than the scheduled update interval 0:00:30 #2

Open Veldkornet opened 5 years ago

Veldkornet commented 5 years ago

My homeassistant.log is filled with the warnings below. However, if I manually go to http:///e, the result is instant. I can't see how this can take over 30 seconds. Any ideas?

Home Assistant: 0.101.3

> 2019-06-21 10:13:03 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:13:34 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:14:05 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:14:36 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:15:07 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:15:38 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:16:09 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:16:40 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:17:10 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:17:41 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:18:12 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:18:43 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:19:14 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:19:45 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:20:16 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:20:46 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:21:17 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:21:48 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:22:19 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:22:50 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:23:21 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:23:52 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:24:23 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:24:54 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:25:25 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:25:56 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
> 2019-06-21 10:26:27 WARNING (MainThread) [homeassistant.components.sensor] Updating youless sensor took longer than the scheduled update interval 0:00:30
Veldkornet commented 5 years ago

I'm wondering if it's because the the data just hasn't changed on the page, rather than a connection issue.

Either way, if it's expected, is there any way to only show these if debug mode it on or something? For me it's useless information in my log.

pdwonline commented 4 years ago

It this issue still actual? I can't reproduce it

Veldkornet commented 4 years ago

Yes it is, at least in 0.112 it was. I only notice it if HA has been running for a few days. Seems to be fine just after a reboot.

As I just updated to 0.113, I'll need to leave it for a day or two and check back.

Veldkornet commented 4 years ago

To confirm, issue still occurs on 0.113.1

Veldkornet commented 3 years ago

I'm on 0.117.2 and it still occurs.

My Youless is connected to a TL-WR802N so that it connects to the network via WiFi. Since I'm able to access the Youless without problem and a restart of HA solves the problem, I'm taking a wild guess here that for some reason, the device falls off the WiFi or switches AP's or something for a short period of time, after which the HA component fails to recover.