Presence detection depends on accurate time configuration between Home Assistant and the UniFi controller. By default devices are marked as away 300 seconds after they were last seen. This platform allows you to detect presence by looking at devices connected to a Ubiquiti UniFi controller. It is recommended that you run the UniFi controller in a dedicated virtual machine to avoid that situation. If you run the UniFi controller on the same operating system as Home Assistant there may be conflicts in ports if you have the MQTT integration as well. The UniFi controller can either be a dedicated hardware device (UniFi’s cloud key), or as software on any Linux system.
Note the Dream Machine Pro and Cloud Key Gen2 plus updated to UniFi OS needs the port to be 443. Make sure to give it the right permissions for the functions you want to use. You can do this in the manage users section on the UniFi OS dashboard. A user who uses the Ubiquiti cloud will not work. UniFi OSįor UniFi OS a local-only user needs to be created. If you want blocking of network access or POE control as well you would need to have ‘admin’ permissions. If all you want to use is the device tracker then it is recommended that you create a limited user that has read-only permissions for the UniFi device tracker. The UniFi controller allows you to create multiple users on it besides the main administrator. Some advanced options are available when “Advanced Mode” is enabled on your user profile page. Enter what UniFi integration you want to change options on and press the cog wheel. Extra configuration of the integrationĪll configuration options are offered from the front end. The user needs administrator privileges in order to control switches.
If there wasn’t any discovered automatically, don’t worry! You can set up a