Home zone not triggering

Hi,

I might be very stupid or something but i really don’t get why the below config isn’t working :slight_smile:

zone:
  name: Home
  latitude: 51.9049640
  longitude: 4.3352800
  radius: 100
  icon: mdi:home

device_tracker:
  platform: unifi
  host: 192.168.2.250
  port: 8443
  username: dennis
  password: *password*
 # Seconds between each scan for new devices (default: 12)
  interval_seconds: 12
  # Seconds to wait till marking someone as not home after not being seen
  # (default: 180)
  consider_home: 180
  track_new_devices: no

alias: 'Test trigger'
  trigger:
    platform: zone
    entity_id: device_tracker.samsung_s7_dennis
    zone: zone.Home
    event: enter
  action:
     service: scene.turn_on
     entity_id: scene.Normaal-avond

It never triggers the trigger, but when i’m checking the webinterface it nicely says that my phone is “Home” instead of “Away”. What am i doing wrong?

i did the same mistake like you. according to Automation - Home Assistant ,

Currently this is limited to the OwnTracks platform as well as the iCloud platform.

So Ubiquiti Unifi WAP will not work. Try this instead…

automation:
- alias: 'Test trigger'
  trigger:
    platform: state
    entity_id: device_tracker.samsung_s7_dennis
    from: 'not_home'
    to: 'home'
  action:
    service: scene.turn_on
    entity_id: scene.Normaal-avond

Hi All

You seem to have the unifi controller working with Home Assistant?
I also have a Unifi network with 3 APs and the Unifi CloudKey running the controller locally
Running Rasp3 and Hass:io

But no matter what I do I cant see any of my devices being logged?
I even tried creating a read only admin user on the controller…

# Unifi
device_tracker:
  - platform: unifi
    host: 192.168.0.5
    port: 8443
    username: admin
    password: !secret unifi_password
#   site_id: streetname
    verify_ssl: False

    new_device_defaults: 
     track_new_devices: True
     hide_if_away: False
     interval_seconds: 12
     consider_home: 180
#    detection_time: 30

I just would like to start by seeing iPad and other devices showing up in the LOGBOOK…
No errors in the log files

Best regards
Casperse

Oh BTW when the device_tracker is enabled, this file is not created? known_devices.yaml