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

85 lines
2.3 KiB
YAML

loop: 1
device:
name: LVX6048 #2
serial_number: lvx6048_2
manufacturer: MPP Solar
model: LVX6048
port:
type: usb
path: /dev/lvx6048-2
protocol: PI18
mqttbroker:
name: 10.0.0.41
port: 1883
username: mqtt
password: <MQTT_PASSWORD>
adhoc_topic: powermon/lvx6048_2/addcommand
adhoc_result_topic: powermon/lvx6048_2/result
commands:
- command: GS
trigger:
every: 5
outputs:
- type: mqtt
topic: powermon/lvx6048_2/GS
format:
type: hass
discovery_prefix: homeassistant
entity_id_prefix: lvx6048_2
excl_filter: '^(battery_voltage_from_scc.*|mppt2_.*|setting_value_configuration_state)$'
- command: MOD
trigger:
every: 10
outputs:
- type: mqtt
topic: powermon/lvx6048_2/MOD
format:
type: hass
discovery_prefix: homeassistant
entity_id_prefix: lvx6048_2
- command: PIRI
trigger:
every: 300
outputs:
- type: mqtt
topic: powermon/lvx6048_2/PIRI
format:
type: hass
discovery_prefix: homeassistant
entity_id_prefix: lvx6048_2
# 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_2/ET
format:
type: hass
discovery_prefix: homeassistant
entity_id_prefix: lvx6048_2
# 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_2/FWS
format:
type: hass
discovery_prefix: homeassistant
entity_id_prefix: lvx6048_2