Skip to content

Commit

Permalink
Add entity Main Breaker Current Limit
Browse files Browse the repository at this point in the history
  • Loading branch information
mikael-andersson committed Nov 20, 2024
1 parent a445360 commit 5184e05
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions custom_components/solax_modbus/plugin_solax.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,18 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
allowedtypes = AC | HYBRID | GEN4 | GEN5,
icon = "mdi:battery-charging-high",
),
SolaxModbusNumberEntityDescription(
name = "Main Breaker Current Limit",
key = "main_breaker_current_limit",
register = 0x71,
fmt = "i",
native_min_value = 10,
native_max_value = 250,
native_step = 1,
native_unit_of_measurement = UnitOfElectricCurrent.AMPERE,
device_class = NumberDeviceClass.CURRENT,
allowedtypes = AC | HYBRID | GEN4 | GEN5,
),
SolaxModbusNumberEntityDescription(
name = "Feedin On Power",
key = "feedin_on_power",
Expand Down Expand Up @@ -2842,6 +2854,13 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
allowedtypes = HYBRID | GEN4 | GEN5,
internal = True,
),
SolaXModbusSensorEntityDescription(
name = "Main Breaker Current Limit",
key = "main_breaker_current_limit",
register = 0xD7,
allowedtypes = AC | HYBRID | GEN4 | GEN5,
internal = True,
),
SolaXModbusSensorEntityDescription(
name = "Battery Install Capacity",
key = "battery_install_capacity",
Expand Down

0 comments on commit 5184e05

Please sign in to comment.