-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device_tracker and/or Sensor changing states randomly since 0.115.x #40577
Comments
nmap_tracker documentation |
ping documentation |
After like a few hours of uptime, the following message is spammed every few seconds. WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12 I tried to check if the problem persists if I change alle my presence detection to either nmap or ping. |
Something strange is happening here as well since 0.115.4 (coming from 0.114.3). |
Right after that last one HA 'is started' (with minutes of delay). Edit2: Nah, indeed, both ping and nmap are broken. |
Indeed. Maybe this clue can shed some light on this issue: This very good custom component is working fine for me right now. No issues at all. I migrated all my device tracking to this custom component. |
same issue, nmap works at first but fails after some time |
@SaturnusDJ |
Still in 0.116 and 0.117 for at least
Do we maybe use a specific component/integration that clashes? No change with following disabled:
Not tested: influxdb Was does look odd is when it is starting up, the ping entities take a long time to be available as if it is pinging one device per second or slower. After that is done, all other device_tracker entities become available immediately. |
Same for 2021.2.3. Should we mention someone higher up? Wait wait...the error still shows but ping might actually work. I am testing atm. Okay, despite the error, it looks the issue is not happening anymore 🥂 |
Although it works...HA has slow startup time because of it. A strange result is that it takes minutes for light groups to be started. 🤦♂️ |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Slow startup seems fixed in https://www.home-assistant.io/blog/2021/05/05/release-20215/#breaking-changes via #43869 |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem
Device Tracker switching states randomly.
Using the nmap component and the ping component.
Most of these devices should be online.
Yet they change randomly.
I can rule out a network issue since all pings from the debian 10 host system went through without a packet loss.
Environment
Problem-relevant
configuration.yaml
or
most of the device_trackers are then translated to sensors like following
Traceback/Error logs
[homeassistant.bootstrap] Waiting on integrations to complete setup: device_tracker # this is on boot #this is during 2020-09-26 11:36:18 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12 2020-09-26 11:36:30 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12 2020-09-26 11:36:42 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12 2020-09-26 11:36:54 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12 2020-09-26 11:37:06 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12 2020-09-26 11:37:18 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
This stalls the whole system startup into like 3 minutes hanging until this goes away.
Additional information
The text was updated successfully, but these errors were encountered: