add controls to lvx
This commit is contained in:
81
LVX6048/homeassistant/mqtt_controls.yaml
Normal file
81
LVX6048/homeassistant/mqtt_controls.yaml
Normal file
@@ -0,0 +1,81 @@
|
||||
# LVX6048 control entities (HA → lvx-control bridge → both inverters).
|
||||
#
|
||||
# Each entity publishes a friendly value to solar/control/lvx6048/<action>;
|
||||
# lvx-control validates, encodes to PI18, and mirrors to both inverters'
|
||||
# powermon adhoc topics. State is read from the existing PIRI auto-discovery
|
||||
# entities (unit-1 only — both units stay in lock-step thanks to the mirror).
|
||||
#
|
||||
# Drop into ~/homeassistant/lvx6048/mqtt_controls.yaml and reference from
|
||||
# configuration.yaml, e.g.:
|
||||
#
|
||||
# mqtt: !include lvx6048/mqtt_controls.yaml
|
||||
#
|
||||
# (or merge into your existing top-level `mqtt:` block by hand).
|
||||
|
||||
select:
|
||||
- name: "LVX6048 output priority"
|
||||
unique_id: lvx6048_output_priority_control
|
||||
icon: mdi:transmission-tower-export
|
||||
command_topic: solar/control/lvx6048/output_priority
|
||||
options:
|
||||
- solar_utility_battery
|
||||
- solar_battery_utility
|
||||
state_topic: homeassistant/sensor/lvx6048_1_output_source_priority/state
|
||||
value_template: >-
|
||||
{% set m = {
|
||||
'Solar - Utility - Battery': 'solar_utility_battery',
|
||||
'Solar - Battery - Utility': 'solar_battery_utility'
|
||||
} %}
|
||||
{{ m.get(value, none) }}
|
||||
|
||||
- name: "LVX6048 charger priority"
|
||||
unique_id: lvx6048_charger_priority_control
|
||||
icon: mdi:battery-charging
|
||||
command_topic: solar/control/lvx6048/charger_priority
|
||||
options:
|
||||
- solar_first
|
||||
- solar_and_utility
|
||||
- solar_only
|
||||
state_topic: homeassistant/sensor/lvx6048_1_charger_source_priority/state
|
||||
value_template: >-
|
||||
{% set m = {
|
||||
'Solar First': 'solar_first',
|
||||
'Solar + Utility': 'solar_and_utility',
|
||||
'Only solar charging permitted': 'solar_only'
|
||||
} %}
|
||||
{{ m.get(value, none) }}
|
||||
|
||||
- name: "LVX6048 solar power priority"
|
||||
unique_id: lvx6048_solar_power_priority_control
|
||||
icon: mdi:solar-power-variant
|
||||
command_topic: solar/control/lvx6048/solar_power_priority
|
||||
options:
|
||||
- battery_load_utility_ac
|
||||
- load_battery_utility
|
||||
state_topic: homeassistant/sensor/lvx6048_1_solar_power_priority/state
|
||||
value_template: >-
|
||||
{% set m = {
|
||||
'Battery-Load-Utiliy + AC Charger': 'battery_load_utility_ac',
|
||||
'Load-Battery-Utiliy': 'load_battery_utility'
|
||||
} %}
|
||||
{{ m.get(value, none) }}
|
||||
|
||||
- name: "LVX6048 max utility charging current"
|
||||
unique_id: lvx6048_max_utility_charging_current_control
|
||||
icon: mdi:transmission-tower
|
||||
command_topic: solar/control/lvx6048/max_utility_charging_current
|
||||
options: ['2', '10', '20', '30', '40', '50', '60', '70', '80']
|
||||
state_topic: homeassistant/sensor/lvx6048_1_max_ac_charging_current/state
|
||||
# State publishes raw integer (no unit suffix); options are strings to match.
|
||||
|
||||
number:
|
||||
- name: "LVX6048 max charging current"
|
||||
unique_id: lvx6048_max_charging_current_control
|
||||
icon: mdi:current-dc
|
||||
command_topic: solar/control/lvx6048/max_charging_current
|
||||
state_topic: homeassistant/sensor/lvx6048_1_max_charging_current/state
|
||||
min: 10
|
||||
max: 80
|
||||
step: 10
|
||||
unit_of_measurement: A
|
||||
mode: slider
|
||||
Reference in New Issue
Block a user