Person Using Google Maps Application Through Black Android Smartphone
Ingo Joseph via Pexels
Home / Faulty Home Assistant Device Tracker Problem triggers for no reason
Home Assistant Integrations

Faulty Home Assistant Device Tracker Problem triggers for no reason

While this does sound like a geeky satire news heading, it is a common device tracker misconfiguration problem. All presence based automations would trigger at the same time because the device_tracker component would temporarily mark me as not_home before returning back to home.

Not sure if this issue is specific to the fritz device_tracker component for Home Assistant, or not. This is what the logbook looks like in this situation:

Home Assistant Logbook - Device Tracker
Home Assistant Logbook – Device Tracker

How to fix the device tracker configuration problem

The root cause is with the intervals_seconds and consider_home parameter. After some trial and error I figured out that these not have the same value. The consider_home value must be a longer time duration than the polling interval defined by intervals_seconds.

The intervals_seconds parameter and consider_home parameter should not have the same value.

Defective configuration

device_tracker: 
  - platform: fritz
    new_device_defaults:
      track_new_devices: no
    host: 10.1.1.1
    username: admin
    password: !secret fritzbox_pw
    interval_seconds: 120
    consider_home: '00:02:00'

Corrected configuration

device_tracker: 
  - platform: fritz
    new_device_defaults:
      track_new_devices: no
    host: 10.1.1.1
    username: admin
    password: !secret fritzbox_pw
    interval_seconds: 120
    consider_home: '00:02:30' # 2.5 minutes instead

Conclusion

By giving different values you will be able to fix this strange device tracker problem that appears to trigger things for no reason. Check out my other post for resolving Home Assistant upgrade errors in custom Python Components.

Leave a Comment

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

DON’T MISS OUT!
Subscribe To Newsletter
Be the first to get latest updates and exclusive content straight to your email inbox.
Stay Updated
Give it a try, you can unsubscribe anytime.
close-link