Skip to content

Commit ddd797b

Browse files
committed
System On/Off PV Only
1 parent 0e09591 commit ddd797b

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

custom_components/solax_modbus/plugin_solax.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,38 @@ def value_function_battery_voltage_cell_difference(initval: int, descr: Any, dat
14971497
icon="mdi:home-clock",
14981498
value_function=value_function_sync_rtc,
14991499
),
1500+
SolaxModbusButtonEntityDescription(
1501+
name="System On",
1502+
key="system_on",
1503+
register=0x610,
1504+
command=1,
1505+
allowedtypes=MIC | X3,
1506+
icon="mdi:power-on",
1507+
),
1508+
SolaxModbusButtonEntityDescription(
1509+
name="System Off",
1510+
key="system_off",
1511+
register=0x610,
1512+
command=0,
1513+
allowedtypes=MIC | X3,
1514+
icon="mdi:power-off",
1515+
),
1516+
SolaxModbusButtonEntityDescription(
1517+
name="System On",
1518+
key="system_on",
1519+
register=0x690,
1520+
command=1,
1521+
allowedtypes=MIC | GEN4 | X1,
1522+
icon="mdi:power-on",
1523+
),
1524+
SolaxModbusButtonEntityDescription(
1525+
name="System Off",
1526+
key="system_off",
1527+
register=0x690,
1528+
command=0,
1529+
allowedtypes=MIC | GEN4 | X1,
1530+
icon="mdi:power-off",
1531+
),
15001532
]
15011533

15021534
# ================================= Number Declarations ============================================================

0 commit comments

Comments
 (0)