Hi. Trying to get my HA setup to connect to my UniFi AC Pro. I currently use the unificloud controller bundled with the device. Using the following code in my config:
device_tracker:
- platform: unifi
username: email
password: password
site_id: https://007.unificloud.co.uk:8443/manage/site/xxxxxxx/dashboard
However, I keep receiving ‘connection refused’ within the log.
16-11-29 08:46:28 homeassistant.components.device_tracker: Error setting up platform unifi
Traceback (most recent call last):
_ File “/usr/lib/python3.5/urllib/request.py”, line 1254, in do_open_
_ h.request(req.get_method(), req.selector, req.data, headers)_
_ File “/usr/lib/python3.5/http/client.py”, line 1106, in request_
_ self.send_request(method, url, body, headers)
_ File “/usr/lib/python3.5/http/client.py”, line 1151, in send_request
_ self.endheaders(body)_
_ File “/usr/lib/python3.5/http/client.py”, line 1102, in endheaders_
_ self.send_output(message_body)
_ File “/usr/lib/python3.5/http/client.py”, line 934, in send_output
_ self.send(msg)_
_ File “/usr/lib/python3.5/http/client.py”, line 877, in send_
_ self.connect()_
_ File “/usr/lib/python3.5/http/client.py”, line 1252, in connect_
_ super().connect()_
_ File “/usr/lib/python3.5/http/client.py”, line 849, in connect_
_ (self.host,self.port), self.timeout, self.source_address)_
_ File “/usr/lib/python3.5/socket.py”, line 711, in create_connection_
_ raise err_
_ File “/usr/lib/python3.5/socket.py”, line 702, in create_connection_
_ sock.connect(sa)_
ConnectionRefusedError: [Errno 111] Connection refused
On my HA server, I can telnet to the address and port above. Anyone have any suggestions?
Thanks