Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solax retrofit remotecontrol #1136

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions custom_components/solax_modbus/plugin_solax.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
name = "Remotecontrol Trigger",
key = "remotecontrol_trigger",
register = 0x7C,
allowedtypes = HYBRID | GEN4 | GEN5,
allowedtypes = AC | HYBRID | GEN4 | GEN5,
write_method = WRITE_MULTI_MODBUS,
icon = "mdi:battery-clock",
value_function = value_function_remotecontrol_recompute,
Expand Down Expand Up @@ -480,7 +480,7 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
SolaxModbusNumberEntityDescription(
name = "Remotecontrol Active Power",
key = "remotecontrol_active_power",
allowedtypes = HYBRID | GEN4 | GEN5,
allowedtypes = AC | HYBRID | GEN4 | GEN5,
native_min_value = -6000,
native_max_value = 30000,
native_step = 100,
Expand All @@ -495,7 +495,7 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
name = "Remotecontrol Reactive Power",
key = "remotecontrol_reactive_power",
unit = REGISTER_S32,
allowedtypes = HYBRID | GEN4 | GEN5,
allowedtypes = AC | HYBRID | GEN4 | GEN5,
native_min_value = -4000,
native_max_value = 4000,
native_step = 100,
Expand Down Expand Up @@ -535,7 +535,7 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
SolaxModbusNumberEntityDescription(
name = "Remotecontrol Import Limit",
key = "remotecontrol_import_limit",
allowedtypes = HYBRID | GEN4 | GEN5,
allowedtypes = AC | HYBRID | GEN4 | GEN5,
native_min_value = 0,
native_max_value = 30000, # overwritten by MAX_EXPORT
native_step = 100,
Expand Down Expand Up @@ -1140,7 +1140,7 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
# 2: "Enabled Quantity Control",
# 3: "Enabled SOC Target Control",
},
allowedtypes = HYBRID | GEN4 | GEN5,
allowedtypes = AC | HYBRID | GEN4 | GEN5,
initvalue = "Disabled",
icon = "mdi:transmission-tower",
),
Expand All @@ -1153,7 +1153,7 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
1: "Set",
2: "Update",
},
allowedtypes = HYBRID | GEN4 | GEN5,
allowedtypes = AC | HYBRID | GEN4 | GEN5,
initvalue = "Set",
icon = "mdi:transmission-tower",
),
Expand Down
Loading