From d53e070343a8fcc17a0c1c9d92e1ae13e4a6c4c1 Mon Sep 17 00:00:00 2001 From: isorin Date: Wed, 8 Jan 2025 14:21:21 +0000 Subject: [PATCH 1/2] Fix storage modes for Solis FB00 --- .../solax_modbus/plugin_solis_fb00.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/custom_components/solax_modbus/plugin_solis_fb00.py b/custom_components/solax_modbus/plugin_solis_fb00.py index c55d4f5e..5fccdd0a 100644 --- a/custom_components/solax_modbus/plugin_solis_fb00.py +++ b/custom_components/solax_modbus/plugin_solis_fb00.py @@ -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", @@ -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, ), From 94edcf9f611e138220145d7b38ac28ad64eb82ee Mon Sep 17 00:00:00 2001 From: isorin Date: Thu, 9 Jan 2025 00:24:11 +0000 Subject: [PATCH 2/2] Fixed a register --- custom_components/solax_modbus/plugin_solis_fb00.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/solax_modbus/plugin_solis_fb00.py b/custom_components/solax_modbus/plugin_solis_fb00.py index 5fccdd0a..5b9ee56b 100644 --- a/custom_components/solax_modbus/plugin_solis_fb00.py +++ b/custom_components/solax_modbus/plugin_solis_fb00.py @@ -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",