updates to evse

This commit is contained in:
2026-05-09 11:34:26 -04:00
parent 8c7b5fb711
commit df3fb3466a
3 changed files with 75 additions and 26 deletions

View File

@@ -11,6 +11,7 @@ Mirrors the `eg4battery/homeassistant/` pattern.
| File | Where it goes in HA |
|----------------------------|--------------------------------------------------------------|
| `mqtt_controls.yaml` | `configuration.yaml``mqtt: !include lvx6048/mqtt_controls.yaml` (or merge by hand) |
| `template_sensors.yaml` | `configuration.yaml``template: !include lvx6048/template_sensors.yaml` |
| `lovelace_controls.yaml` | Raw Lovelace card config — paste into a new dashboard view |
The auto-discovery sensors (battery V, fault code, mode, MPPT power, …)
@@ -20,6 +21,10 @@ This folder only adds the pieces HA can't infer:
- **Control entities** — selects + numbers that publish to
`solar/control/lvx6048/<action>` so users can change settings from a
dashboard without touching the LCD.
- **Stack-total derived sensors** — the PI18 GS command only exposes per-unit
numbers, so a 240 V load split across two LVX6048s shows as ~half on each.
`template_sensors.yaml` synthesizes household-level totals (apparent_power,
active_power, mppt1_input_power).
- **A dashboard view** that wraps those controls with the existing
telemetry into one screen.

View File

@@ -0,0 +1,54 @@
# Derived template sensors for the 2× LVX6048 parallel stack.
# Each LVX6048 reports its own AC output and MPPT contribution; PI18 GS has
# no system-total field (PGS does, but powermon doesn't poll it). These
# rollups synthesize the household-level numbers from the per-unit data.
#
# Include into configuration.yaml as:
# template: !include lvx6048/template_sensors.yaml
#
# Stack rollups created:
# sensor.lvx6048_stack_ac_output_apparent_power VA (unit_1 + unit_2)
# sensor.lvx6048_stack_ac_output_active_power W (unit_1 + unit_2)
# sensor.lvx6048_stack_mppt1_input_power W (solar in, both units)
#
# Background: with the inverters in 120/240 split-phase wiring, an EV
# pulling 24 A at 240 V drives 24 A through each leg, so each LVX shows
# only its 120 V × 24 A ≈ 2880 VA contribution. The stack rollup is the
# real household-level number.
- sensor:
- name: "lvx6048_stack ac_output_apparent_power"
unique_id: lvx6048_stack_ac_output_apparent_power
unit_of_measurement: "VA"
device_class: apparent_power
state_class: measurement
state: >
{% set p = [
states('sensor.lvx6048_1_ac_output_apparent_power') | float(0),
states('sensor.lvx6048_2_ac_output_apparent_power') | float(0),
] %}
{{ p | sum | round(0) }}
- name: "lvx6048_stack ac_output_active_power"
unique_id: lvx6048_stack_ac_output_active_power
unit_of_measurement: "W"
device_class: power
state_class: measurement
state: >
{% set p = [
states('sensor.lvx6048_1_ac_output_active_power') | float(0),
states('sensor.lvx6048_2_ac_output_active_power') | float(0),
] %}
{{ p | sum | round(0) }}
- name: "lvx6048_stack mppt1_input_power"
unique_id: lvx6048_stack_mppt1_input_power
unit_of_measurement: "W"
device_class: power
state_class: measurement
state: >
{% set p = [
states('sensor.lvx6048_1_mppt1_input_power') | float(0),
states('sensor.lvx6048_2_mppt1_input_power') | float(0),
] %}
{{ p | sum | round(0) }}