Files
Home-Assistant-Green-12V-Sm…/hag_smart_ups_for_esphome.yaml
2026-08-18 00:06:06 +02:00

1 line
956 B
YAML

esphome:
name: hag-ups-monitor
esp32:
board: esp32-h2-devkitm-1
variant: esp32h2
framework:
type: esp-idf
network:
enable_ipv6: true
# Thread configuration utilizing the SLZB-MR5U as the Border Router
openthread:
# MTD (Minimal Thread Device) disables the router/repeater role
# to optimize the device for a battery-powered topology.
device_type: MTD
i2c:
sda: GPIO10
scl: GPIO11
scan: true
sensor:
- platform: max17043
address: 0x36
battery_level:
name: "UPS Battery Level"
id: ups_battery_level
icon: "mdi:battery"
voltage:
name: "UPS Battery Voltage"
id: ups_battery_voltage
icon: "mdi:battery-high"
update_interval: 30s
binary_sensor:
- platform: gpio
pin:
number: GPIO4
mode:
input: true
pullup: true
inverted: true
name: "Mains Power Status"
id: mains_power_status
device_class: plug
icon: "mdi:power-plug"