mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-04-27 23:07:34 +00:00
1.7 KiB
1.7 KiB
layout | title | description | date | sidebar | comments | sharing | footer | logo | ha_release | ha_category | ha_iot_class |
---|---|---|---|---|---|---|---|---|---|---|---|
page | APCUPSd Sensor | Instructions on how to set up APCUPSd sensors within Home Assistant. | 2016-02-10 18:28 | true | false | true | true | apcupsd.png | 0.13 | System Monitor | Local Polling |
The apcupsd
sensor platform allows you to monitor a UPS (battery backup) by using data from the apcaccess command.
{% linkable_title Configuration %}
To use this sensor platform, you first have to set up apcupsd, and add the following to your configuration.yaml
file:
# Example configuration.yaml entry
sensor:
- platform: apcupsd
resources:
- bcharge
- linev
{% configuration %} resources: description: Contains all entries to display. required: true type: list {% endconfiguration %}
{% linkable_title Example %}
Given the following output from apcaccess
:
APC : 001,051,1149
DATE : 2016-02-09 17:13:31 +0000
HOSTNAME : localhost
VERSION : 3.14.12 (29 March 2014) redhat
UPSNAME : netrack
CABLE : Custom Cable Smart
DRIVER : APC Smart UPS (any)
UPSMODE : Stand Alone
STARTTIME: 2016-02-09 16:06:47 +0000
MODEL : SMART-UPS 1400
STATUS : TRIM ONLINE
LINEV : 247.0 Volts
LOADPCT : 13.0 Percent
BCHARGE : 100.0 Percent
TIMELEFT : 104.0 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME : 0 Seconds
MAXLINEV : 249.6 Volts
MINLINEV : 244.4 Volts
OUTPUTV : 218.4 Volts
[...]
Use the (case insensitive) values from the left hand column:
sensor:
- platform: apcupsd
resources:
- linev
- loadpct
- timeleft