Next thing was that the Unifi refuses to start if the deCONZ addon is started. So I had to delay the deCONZ start 30 seconds (not using autostart, but to trigger an automation at startup that waits for 30 s then start the deCONZ addon).
I found this addon unreliable and AP were being disconnected and require re-adopting all the time. I have switched back to the OSX controller (installed on my Mac) and everything is working well again.
The AP seems stuck in “adopting” state: Please read the installation instructions carefully. You need to change some controller settings in order for this add-on to work properly.
I ise the Cloudkey rather than the Hassio controller but even with that there are sometimes adoption issues with the APs etc.
You sometimes need to login via ssh to the AP and use the set-inform command to prod them as to where the controller is on the network and they then pick up the controller properly. You still need the controller Hostname/IP settting in the controller UI to be setup as frenck says above however.
OK for various reasons I installed this addon and then uninstalled it again. Now when I tried to install it again with the latest 0.1.3 version it takes around 2 seconds to install (which can’t be right as the previous version took well over a minute!). If I click on START it turns red and does not start. There is nothing in the logs. Repeated this a few times with the same result.
I assume there is something remaining from a previous install. How can I check via SSH and maybe remove?
Has anyone gotten it to work with iFrame so I can manage it within the Home Assistant page? I’ve tried my duckdns address, the local IP of the HassIO computer, and just hassio.local, but the tab for it just shows a blank page. I feel like it’s something involving the SSL certificate, but I don’t actually know.
Due to security policies in the UniFi Controller software, it is currently impossible to add the UniFI web interface to your Home Assistant frontend using a panel_iframe.
OK I have spent some more time with this and missed this erorr in the log
ERROR (SyncWorker_3) [hassio.docker] Can't start addon_a0d7b954_unifi: 500 Server Error: Internal Server Error ("driver failed programming external connectivity on endpoint addon_a0d7b954_unifi (b7b9f45c64ad878e9a191c8cd1debdd0816aff332fe8963afc42867f800592a3): Error starting userland proxy: listen udp 0.0.0.0:1900: bind: address already in use")
I have no idea what is using port 1900 on my Pi. netstat gives no clues. I changed 1900 to 1901 and I can now install and start the plugin. Any ideas why port 1900 is used?