Device tracker

I can’t get my unifi device tracker to work, get following error in the log.

2018-11-15 10:36:23 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform unifi_direct

Do I need to do anything in the Unifi controller?

# Tracker for connections to local network
device_tracker:
  - platform: unifi_direct
    host: 192.168.1.101
    username: secret!
    password: secret!
    interval_seconds: 10
    consider_home: 180
    track_new_devices: yes

If you are using the controller you need to use WAP:

I.E change unifi_direct to unifi.

I’ve never used unifi_direct but I assume it’s for connecting to a WAP/AP without a controller.