Skip to content

Commit

Permalink
Merge pull request #1207 from isorin/solis_fb00-fix-storage-modes
Browse files Browse the repository at this point in the history
Fix storage modes (and a register) for Solis-FB00
  • Loading branch information
wills106 authored Jan 16, 2025
2 parents 383d768 + 94edcf9 commit 84a6b1b
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions custom_components/solax_modbus/plugin_solis_fb00.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def value_function_pv4_power(initval, descr, datadict):
SolisModbusButtonEntityDescription(
name="Update Charge Times 6",
key="update_charge_times_6",
register=43736,
register=43746,
allowedtypes=HYBRID,
write_method=WRITE_MULTI_MODBUS,
icon="mdi:battery-clock",
Expand Down Expand Up @@ -2119,12 +2119,13 @@ def value_function_pv4_power(initval, descr, datadict):
register=43110,
option_dict={
1: "Self-Use - No Grid Charging",
5: "Off-Grid Mode",
9: "Battery Awaken - No Grid Charging",
17: "Backup/Reserve - No Grid Charging",
33: "Self-Use",
37: "Off-Grid Mode",
41: "Battery Awaken",
49: "Backup/Reserve",
64: "Feed-in priority",
64: "Feed-in priority - No Grid Charging",
96: "Feed-in priority",
},
allowedtypes=HYBRID,
icon="mdi:dip-switch",
Expand Down Expand Up @@ -2696,12 +2697,14 @@ def value_function_pv4_power(initval, descr, datadict):
register=33132,
register_type=REG_INPUT,
scale={
3: "Self-Use - No Grid Charging",
1: "Self-Use - No Grid Charging",
17: "Backup/Reserve - No Grid Charging",
33: "Self-Use",
37: "Off-Grid Mode",
41: "Battery Awaken",
51: "Backup/Reserve",
98: "Feed-in priority",
49: "Backup/Reserve",
64: "Feed-in priority - No Grid Charging",
96: "Feed-in priority",
},
allowedtypes=HYBRID,
),
Expand Down

0 comments on commit 84a6b1b

Please sign in to comment.