Files
shaggy-solar/LVX6048/config/powermon/powermon.yaml
2026-05-01 19:10:21 -04:00

88 lines
2.5 KiB
YAML

loop: 1
device:
name: LVX6048 #1
serial_number: lvx6048_1
manufacturer: MPP Solar
model: LVX6048
port:
type: usb
path: /dev/lvx6048-1
protocol: PI18
mqttbroker:
name: 10.0.0.41
port: 1883
username: mqtt
password: <MQTT_PASSWORD>
adhoc_topic: powermon/lvx6048_1/addcommand
adhoc_result_topic: powermon/lvx6048_1/result
commands:
- command: GS
trigger:
every: 5
outputs:
- type: mqtt
topic: powermon/lvx6048_1/GS
format:
type: hass
discovery_prefix: homeassistant
entity_id_prefix: lvx6048_1
# drop dead/unconnected fields (always-zero / always-misleading on this
# hardware): SCC voltages we don't have, MPPT2 inputs nothing's wired
# to, internal "config changed" echo flag.
excl_filter: '^(battery_voltage_from_scc.*|mppt2_.*|setting_value_configuration_state)$'
- command: MOD
trigger:
every: 10
outputs:
- type: mqtt
topic: powermon/lvx6048_1/MOD
format:
type: hass
discovery_prefix: homeassistant
entity_id_prefix: lvx6048_1
- command: PIRI
trigger:
every: 300
outputs:
- type: mqtt
topic: powermon/lvx6048_1/PIRI
format:
type: hass
discovery_prefix: homeassistant
entity_id_prefix: lvx6048_1
# Drop fields whose description (and therefore entity_id slug) shadows
# GS's live measurements. PIRI's values for these are nameplate /
# configured-rating, not live, so they overwrite the live series every
# 300s producing 6000 VA / 6000 W spikes (LVX6048 nameplate).
excl_filter: '^(ac_input_voltage|ac_input_current|ac_output_voltage|ac_output_frequency|ac_output_current|ac_output_apparent_power|ac_output_active_power|battery_voltage)$'
- command: ET
trigger:
every: 60
outputs:
- type: mqtt
topic: powermon/lvx6048_1/ET
format:
type: hass
discovery_prefix: homeassistant
entity_id_prefix: lvx6048_1
# Fault + warning bits (2-digit fault_code + 16 boolean warning flags).
# Polled every 30 s — fast enough to be useful in HA, slow enough not to
# flood the bus during normal "No fault" steady state.
- command: FWS
trigger:
every: 30
outputs:
- type: mqtt
topic: powermon/lvx6048_1/FWS
format:
type: hass
discovery_prefix: homeassistant
entity_id_prefix: lvx6048_1