Configuring device tracker with Unifi

Hi there, I have a Unifi controller I’m trying to use to get prescense detection working. Here’s the snippet from my config:

device_tracker:
  - platform: unifi
    host: 192.168.1.201
    username: admin username
    password: password of admin user
    new_device_defaults:
      track_new_devices: true
      hide_if_away: false

unifi:
  controllers:
    - host: unifi
      site: default

the UI button in the UI says my config is fine, but I still get the message:

The following components and platforms could not be set up:

* [device-tracker](https://home-assistant.io/integrations/device_tracker/)

Please check your config

The UI checks for syntax. Your problem is that many versions ago, the unifi device tracker was moved to it’s own platform, and no longer sits UNDER device tracker. Remove the unifi section under the device tracker domain.

I tried with just the unifi: part and removed the device_tracker part but got the same error

hi ianhyzy

Did you have made it work the integration of unifi controller on Hassio? I try for hours to integrate, with UI or Yaml but nothing, i recevie the message : no Service
if i test the connection on a PC from same Subnet it works.

Thank you for your reply

Fonio