117 lines
3.9 KiB
YAML
117 lines
3.9 KiB
YAML
|
|
# Lovelace card config for a 3-pack LifePower4 stack overview.
|
||
|
|
# Paste into a dashboard view's raw-config editor, or drop in as a YAML-mode
|
||
|
|
# dashboard. Assumes the template sensors in template_sensors.yaml exist.
|
||
|
|
|
||
|
|
views:
|
||
|
|
- title: Battery Stack
|
||
|
|
icon: mdi:battery
|
||
|
|
path: batteries
|
||
|
|
cards:
|
||
|
|
# ---- stack summary row ----
|
||
|
|
- type: horizontal-stack
|
||
|
|
cards:
|
||
|
|
- type: gauge
|
||
|
|
name: Stack SoC
|
||
|
|
entity: sensor.lifepower4_stack_soc_avg
|
||
|
|
min: 0
|
||
|
|
max: 100
|
||
|
|
severity:
|
||
|
|
green: 40
|
||
|
|
yellow: 20
|
||
|
|
red: 0
|
||
|
|
- type: entity
|
||
|
|
name: Stack Power
|
||
|
|
entity: sensor.lifepower4_stack_pack_power_total
|
||
|
|
icon: mdi:flash
|
||
|
|
- type: entity
|
||
|
|
name: Hottest Point
|
||
|
|
entity: sensor.lifepower4_stack_temperature_max
|
||
|
|
icon: mdi:thermometer
|
||
|
|
|
||
|
|
# ---- per-pack summary cards ----
|
||
|
|
- type: horizontal-stack
|
||
|
|
cards:
|
||
|
|
- !include_named pack_summary_pack1.yaml
|
||
|
|
- !include_named pack_summary_pack2.yaml
|
||
|
|
- !include_named pack_summary_pack3.yaml
|
||
|
|
|
||
|
|
# ---- pack voltage time series ----
|
||
|
|
- type: history-graph
|
||
|
|
title: Pack voltage (24 h)
|
||
|
|
hours_to_show: 24
|
||
|
|
entities:
|
||
|
|
- sensor.lifepower4_1_pack_voltage
|
||
|
|
- sensor.lifepower4_2_pack_voltage
|
||
|
|
- sensor.lifepower4_3_pack_voltage
|
||
|
|
|
||
|
|
# ---- SoC + SoH trend ----
|
||
|
|
- type: history-graph
|
||
|
|
title: SoC / SoH
|
||
|
|
hours_to_show: 168 # 1 week
|
||
|
|
entities:
|
||
|
|
- sensor.lifepower4_1_soc
|
||
|
|
- sensor.lifepower4_2_soc
|
||
|
|
- sensor.lifepower4_3_soc
|
||
|
|
- sensor.lifepower4_1_soh
|
||
|
|
- sensor.lifepower4_2_soh
|
||
|
|
- sensor.lifepower4_3_soh
|
||
|
|
|
||
|
|
# ---- cell balance health (the crucial long-term metric) ----
|
||
|
|
- type: history-graph
|
||
|
|
title: Cell voltage delta (mV) — rising = balance degrading
|
||
|
|
hours_to_show: 168
|
||
|
|
entities:
|
||
|
|
- sensor.lifepower4_1_cell_voltage_delta_mv
|
||
|
|
- sensor.lifepower4_2_cell_voltage_delta_mv
|
||
|
|
- sensor.lifepower4_3_cell_voltage_delta_mv
|
||
|
|
|
||
|
|
# ---- any active warnings/protections — glance card, visible red when on ----
|
||
|
|
- type: entities
|
||
|
|
title: Alarms (should all be "off" on a healthy stack)
|
||
|
|
show_header_toggle: false
|
||
|
|
entities:
|
||
|
|
- type: section
|
||
|
|
label: Pack 1
|
||
|
|
- entity: sensor.lifepower4_1_warning_cell_ov
|
||
|
|
name: Cell OV
|
||
|
|
- entity: sensor.lifepower4_1_warning_cell_uv
|
||
|
|
name: Cell UV
|
||
|
|
- entity: sensor.lifepower4_1_warning_charge_oc
|
||
|
|
name: Charge OC
|
||
|
|
- entity: sensor.lifepower4_1_warning_discharge_oc
|
||
|
|
name: Discharge OC
|
||
|
|
- entity: sensor.lifepower4_1_warning_mos_ot
|
||
|
|
name: MOSFET OT
|
||
|
|
- entity: sensor.lifepower4_1_warning_low_capacity
|
||
|
|
name: Low Capacity
|
||
|
|
- entity: sensor.lifepower4_1_protection_cell_ov
|
||
|
|
name: PROT Cell OV
|
||
|
|
- entity: sensor.lifepower4_1_protection_cell_uv
|
||
|
|
name: PROT Cell UV
|
||
|
|
# (repeat structure for pack_2 and pack_3, omitted for brevity)
|
||
|
|
|
||
|
|
# Per-pack summary card template — save as three copies named
|
||
|
|
# pack_summary_pack1.yaml, pack_summary_pack2.yaml, pack_summary_pack3.yaml
|
||
|
|
# with only the N suffix different.
|
||
|
|
#
|
||
|
|
# type: entities
|
||
|
|
# title: Pack 1
|
||
|
|
# show_header_toggle: false
|
||
|
|
# entities:
|
||
|
|
# - entity: sensor.lifepower4_1_pack_voltage
|
||
|
|
# name: Voltage
|
||
|
|
# - entity: sensor.lifepower4_1_pack_current
|
||
|
|
# name: Current
|
||
|
|
# - entity: sensor.lifepower4_1_pack_power
|
||
|
|
# name: Power
|
||
|
|
# - entity: sensor.lifepower4_1_soc
|
||
|
|
# name: SoC
|
||
|
|
# - entity: sensor.lifepower4_1_soh
|
||
|
|
# name: SoH
|
||
|
|
# - entity: sensor.lifepower4_1_temperature_max
|
||
|
|
# name: Hottest
|
||
|
|
# - entity: sensor.lifepower4_1_cell_voltage_delta_mv
|
||
|
|
# name: Cell Δ
|
||
|
|
# - entity: sensor.lifepower4_1_cycle_count
|
||
|
|
# name: Cycles
|