R Huish 669a7ce7af Added note for Connection refused issues due to apcupsd config (#7457)
* Added note for Connection refused issues due to apcupsd config

* Update apcupsd.markdown

* Minor changes
2018-11-10 22:18:51 +01:00

1.5 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_release
layout title description date sidebar comments sharing footer logo ha_category ha_release
page APCUPSd Instructions on how to integrate APCUPSd status with Home Assistant. 2016-02-10 17:11 true false true true apcupsd.png System Monitor 0.13

APCUPSd status information can be integrated into Home Assistant when the Network Information Server (NIS) is configured is enabled on the APC device.

{% linkable_title Configuration %}

To enable this sensor, add the following lines to your configuration.yaml:

# Example configuration.yaml entry
apcupsd:

{% configuration %} host: description: The hostname/IP address on which the APCUPSd NIS is being served. required: false type: string default: localhost port: description: The port on which the APCUPSd NIS is listening. required: false type: integer default: 3551 {% endconfiguration %}

If you get `ConnectionRefusedError: Connection refused` errors in the Home assistant logs, ensure the [APCUPSd](http://www.apcupsd.org/) configuration directives used by its Network Information Server is set to permit connections from all addresses [NISIP 0.0.0.0](http://www.apcupsd.org/manual/manual.html#configuration-directives-used-by-the-network-information-server), else non-local addesses will not connect. This includes Hass.io running in Docker, even when hosted on the same machine or a virtual machine.