Add APC UPS to monitoring

This commit is contained in:
KemoNine 2019-05-13 02:18:08 +00:00
parent 15a50a17fa
commit c0e0563f65
5 changed files with 60 additions and 2 deletions

View File

@ -4,7 +4,7 @@ widget_dimensions: [120, 120]
widget_size: [1, 1]
widget_margins: [5, 5]
columns: 5
rows: 5
rows: 6
global_parameters:
use_comma: 0
precision: 2
@ -32,3 +32,4 @@ layout:
- battery_status, battery_capacity, battery_voltage, battery_current, battery_health
- load_5m, cpu_temperature, spacer(3x1)
- memory_use_percent, swap_use_percent, disk_use_root, disk_use_tank, cpu_speed
- ups_status, ups_battery, ups_input_voltage, ups_load, ups_time_remaining

View File

@ -4,7 +4,7 @@ widget_dimensions: [120, 120]
widget_size: [1, 1]
widget_margins: [5, 5]
columns: 3
rows: 7
rows: 9
global_parameters:
use_comma: 0
precision: 2
@ -34,3 +34,5 @@ layout:
- battery_current, battery_health
- cpu_temperature, memory_use_percent, swap_use_percent
- load_5m, disk_use_root, disk_use_tank, spacer
- ups_status, ups_battery, ups_input_voltage
- ups_time_remaining, ups_load, spacer

View File

@ -103,3 +103,41 @@ cpu_temperature:
title: CPU
entity: sensor.cpu_temperature
units: "°F"
ups_battery:
widget_type: gauge
entity: sensor.ups_battery
title: "UPS Battery"
units: "%"
min: 0
max: 100
ups_load:
widget_type: gauge
entity: sensor.ups_load
title: "UPS Load"
units: "%"
min: 0
max: 100
ups_input_voltage:
widget_type: sensor
entity: sensor.ups_input_voltage
title: "UPS Line Voltage"
units: "V"
ups_time_remaining:
widget_type: sensor
entity: sensor.ups_time_left
title: "UPS Time Remaining"
units: "m"
ups_status:
widget_type: icon
entity: sensor.ups_status
title: "UPS Status"
icons:
"ONLINE":
icon: mdi-power-plug
"default":
icon: mdi-power-plug-off

View File

@ -214,3 +214,9 @@ cast: !include media/cast.yaml
# Remotes
remote: !secret remotes
# APC UPSs
apcupsd:
host: 172.30.0.1
binary_sensor:
- platform: apcupsd

11
sensors/ups.yaml Normal file
View File

@ -0,0 +1,11 @@
- platform: apcupsd
resources:
- linev
- loadpct
- bcharge
- timeleft
- mbattchg
- sense
- battv
- status