Have hooked up my UPS to my Synology NAS via the supplied cable, and enabled UPS support and network UPS server on the Synology, seeing the UPS OK.
Running Hass 45.1 in Docker on the nas and added apcupsd:
to my config, but getting the error:
2017-06-01 06:06:22 ERROR (Thread-8) [homeassistant.components.apcupsd] Failure while testing APCUPSd status retrieval.
Traceback (most recent call last):
File "/usr/src/app/homeassistant/components/apcupsd.py", line 54, in setup
DATA.update(no_throttle=True)
File "/usr/src/app/homeassistant/util/__init__.py", line 303, in wrapper
result = method(*args, **kwargs)
File "/usr/src/app/homeassistant/components/apcupsd.py", line 90, in update
self._status = self._get_status()
File "/usr/src/app/homeassistant/components/apcupsd.py", line 85, in _get_status
return self._parse(self._get(host=self._host, port=self._port))
File "/usr/local/lib/python3.5/site-packages/apcaccess/status.py", line 33, in get
sock.connect((host, port))
ConnectionRefusedError: [Errno 111] Connection refused
Everything running on localhost.
I also get the same error on a RPi on the network.
Any ideas to troubleshoot?