Presence detection with unifi

I can’t manage to make it work, maybe a firewall or DPI issue?

Gateway : UDM PRO

Home Assistant OS on Raspberry PI 4 in IoT VLAN.

conf file :

device_tracker:

  • platform: unifi
    host: !secret IOT_IP
    username: !secret unifigateway_user
    password: !secret unifigateway_pwd
    verify_ssl: false
    detection_time: 10
    new_device_defaults:
    track_new_devices: false

logs :

Logger: homeassistant.setup
Source: components/device_tracker/legacy.py:279
First occurred: 21:47:32 (1 occurrences)
Last logged: 21:47:32

Error during setup of component device_tracker
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 213, in _async_setup_component
result = await task
File “/usr/src/homeassistant/homeassistant/components/device_tracker/init.py”, line 52, in async_setup
await async_setup_legacy_integration(hass, config)
File “/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py”, line 153, in async_setup_integration
legacy_platforms = await async_extract_config(hass, config)
File “/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py”, line 279, in async_extract_config
raise ValueError(
ValueError: Unable to determine type for unifi: None

using the main LAN IP :

Logger: homeassistant.setup
Source: components/device_tracker/legacy.py:279
First occurred: 22:01:41 (1 occurrences)
Last logged: 22:01:41

Error during setup of component device_tracker
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 213, in _async_setup_component
result = await task
File “/usr/src/homeassistant/homeassistant/components/device_tracker/init.py”, line 52, in async_setup
await async_setup_legacy_integration(hass, config)
File “/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py”, line 153, in async_setup_integration
legacy_platforms = await async_extract_config(hass, config)
File “/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py”, line 279, in async_extract_config
raise ValueError(
ValueError: Unable to determine type for unifi: None