Unifi wifi state always Home

Hi All

I finally got the unifi setup working
I even created a special read only admin account for it

But for some reason the HA does not update the unifi status?
I can see that the wifi device isnt listed in unifi anymore
but for some reason HA keeps stating the location as Home?

My configuration:
device_tracker:

## Bluetooth Tracker
  - platform: bluetooth_tracker

## Unifi
  - platform: unifi
    host: 192.168.0.5
    port: 8443
    username: !secret unifi_username
    password: !secret unifi_password
    ssid_filter:
#     - 'speedzone'
#     - 'guest'
    verify_ssl: False
    site_id: !secret unifi_siteid
    interval_seconds: 30
    consider_home: 120
#   detection_time: 300
    new_device_defaults:
      track_new_devices: True
      hide_if_away: False
      
## NMAP
  - platform: nmap_tracker
    hosts:
     - 192.168.0.201
     - 192.168.0.202
     - 192.168.0.203
     - 192.168.0.204
    home_interval: 30
    exclude:
     - 192.168.0.12
     - 192.168.0.07
     - 192.168.0.08
     - 192.168.0.09
     - 192.168.0.10
     
## PING
  - platform: ping
    interval_secounds: 120
    consider_home: 180
    hosts:
      caspersensiphone7p_ping: 192.168.0.201
      ninasiphone6s_ping: 192.168.0.202
      victoriasiphone_ping: 192.168.0.203
      thomassiphone_ping: 192.168.0.204

Looking at HA status the Wifi stays in Home?
wifi

Looking at the Unifi its away as it should be:
unifi

Ok found the issue!
I hope this helps others with similar problems using unifi

Unifi doesn’t like other naming than hostnames, some one told me that with the mac adress you could change the name… I added a “_ping” in the naming after removing them the wifi is rock solid

Be sure that the naming of the iPhone in the app isn’t the same as the phones hostname!
Also be sure that you use the guide in my other post below to enable ping on the unifi controller (requires 2 FW rules and a setting to enable ICMP)

1 Like