mletenay / home-assistant-goodwe-inverter

Experimental version of Home Assistant integration for Goodwe solar inverters
https://discord.gg/TaXyWXT
MIT License
146 stars 38 forks source link

ECO Charge/Discharge not available #249

Closed nbalcaen closed 5 months ago

nbalcaen commented 7 months ago

I'm running v0.9.9.14

I have the GoodWe GW3600-SBP-20 inverter, Firmware: 04048-06-S06 / 02020-08-S01.

In the integration configuration not everything is available. The Eco power slider, the SoC slider and the mode selector aren't available. image

the integration does not recognize the exact type of inverter and mistakenly selects GW6000ES20. image

Any help?

craigcurtin-dev commented 7 months ago

Can you show the logs from the plug in when it first starts - this will provide a clue - i suspect that the new ETT series (15KW and up Hybrid) and the SBP-V2 series are using a slightly different modbus map and the integration will need to be updated to support the new registers

The OP will need some troubleshooting logs from you to support this

Craig

nbalcaen commented 7 months ago

2024-02-13 07:36:21.559 DEBUG (MainThread) [goodwe] Connecting to ET family inverter at 123.456.7.89. 2024-02-13 07:36:21.559 DEBUG (MainThread) [goodwe.inverter] Creating lock instance for current event loop. 2024-02-13 07:36:24.171 DEBUG (MainThread) [goodwe.protocol] Sending: f70388b800213ac1 2024-02-13 07:36:27.528 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7034200790e920000353336303053504e3233325730303035475736303030455332300006000619ce0008016a30343034382d30362d53303630323032302d30382d533031a121 2024-02-13 07:36:27.530 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform rest is taking over 10 seconds. 2024-02-13 07:36:27.530 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform rest is taking over 10 seconds. 2024-02-13 07:36:27.531 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform rest is taking over 10 seconds. 2024-02-13 07:36:27.620 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'Laadpunt fietsen inschakelen' failed to setup triggers and has been disabled: Unknown device '290630ab0ad425b848bee14f53e4a01d' 2024-02-13 07:36:27.731 DEBUG (MainThread) [goodwe] Connected to inverter GW6000ES20, S/N:myserialnumber. 2024-02-13 07:36:28.118 DEBUG (MainThread) [goodwe.protocol] Sending: f703891c007d7ae7 2024-02-13 07:36:28.478 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18020d072415000000000000000000000000000000000000000000000000000000000000000000000000093f00031385ffffffdf00000000000000000000000000000000000000000001ffffffde000000000000006800000071094100031385000100000000000000000000000000000000000000000000000000000000ffffffe3000000000000000000000000ffffffe2000001690000013d00000e7fffff01e0fffefffffff700030000000600010200000000000000000000000000000000bc000000930009000000f90001000002df0046000000b40000000000da00090000000000010000000000000000000000000106000200130000d408 2024-02-13 07:36:29.779 DEBUG (MainThread) [goodwe.protocol] Sending: f70390880018fc7c 2024-02-13 07:36:30.394 WARNING (MainThread) [homeassistant.components.sensor] Platform rest not ready yet: Server disconnected without sending a response.; Retrying in background in 30 seconds 2024-02-13 07:36:30.424 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100e6004a004a0000000a00640001000000220000000700000000000000000000000000000000000000007e95 2024-02-13 07:36:31.000 DEBUG (MainThread) [goodwe.protocol] Sending: f7038ca0002dbbf3 2024-02-13 07:36:31.691 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a00020064000a00000001fff500000000fff50175000000000000f7cc13850000000000000000fffffff50000000000000000fffffff50000000000000000000000000000017500000000000000000000000000000000000400057b50 2024-02-13 07:36:31.746 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe GW3600-SBP-20 data in 4.015 seconds (success: True) 2024-02-13 07:36:34.906 DEBUG (MainThread) [goodwe.protocol] Sending: f703b090000337b0 2024-02-13 07:36:35.040 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030618020d07241b9caf 2024-02-13 07:36:35.176 DEBUG (MainThread) [goodwe.protocol] Sending: f703b996000155ec 2024-02-13 07:36:35.247 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030227106a6d 2024-02-13 07:36:35.263 DEBUG (MainThread) [goodwe.protocol] Sending: f703b798000136c7 2024-02-13 07:36:35.308 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-13 07:36:35.324 DEBUG (MainThread) [goodwe.protocol] Sending: f703b9ec00017435 2024-02-13 07:36:35.374 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-13 07:36:35.514 DEBUG (MainThread) [goodwe.protocol] Sending: f703b12c00017669 2024-02-13 07:36:35.566 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70302000af056 2024-02-13 07:36:35.578 DEBUG (MainThread) [goodwe.protocol] Sending: f703b9bb00068427 2024-02-13 07:36:35.668 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173b5500ff3800320fffe6fe 2024-02-13 07:36:35.684 DEBUG (MainThread) [custom_components.goodwe.select] Could not read inverter operation mode Traceback (most recent call last): File "/config/custom_components/goodwe/select.py", line 60, in async_setup_entry eco_mode = await inverter.read_setting("eco_mode_1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 546, in read_setting return setting.read_value(response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/sensor.py", line 525, in readvalue raise ValueError(f"{self.id}: power value {self.power} out of range.") ValueError: eco_mode_1: power value -200 out of range. 2024-02-13 07:36:35.724 DEBUG (MainThread) [goodwe.protocol] Sending: f703b9bb00068427 2024-02-13 07:36:35.783 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173b5500ff3800320fffe6fe 2024-02-13 07:36:35.801 DEBUG (MainThread) [custom_components.goodwe.number] Could not read inverter setting eco_mode_power 2024-02-13 07:36:35.803 DEBUG (MainThread) [goodwe.protocol] Sending: f703b9bb00068427 2024-02-13 07:36:35.861 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173b5500ff3800320fffe6fe 2024-02-13 07:36:35.863 DEBUG (MainThread) [custom_components.goodwe.number] Could not read inverter setting eco_mode_soc 2024-02-13 07:36:40.207 DEBUG (MainThread) [goodwe.protocol] Sending: f703891c007d7ae7 2024-02-13 07:36:40.508 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18020d072421000000000000000000000000000000000000000000000000000000000000000000000000094100031384ffffffd100000000000000000000000000000000000000000001ffffffd6fffffff50000006c00000077094200031384000100000000000000000000000000000000000000000000000000000000ffffffd5000000000000000000000000ffffffdb000001690000013d00000e83ffff01e0fffcffffffed00030000000600010200000000000000000000000000000000bc000000930009000000f90001000002df0046000000b40000000000da00090000000000010000000000000000000000000106000200150000c679 2024-02-13 07:36:40.513 DEBUG (MainThread) [goodwe.protocol] Sending: f70390880018fc7c 2024-02-13 07:36:40.602 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100e6004a004a0000000a00640001000000220000000700000000000000000000000000000000000000007e95 2024-02-13 07:36:40.606 DEBUG (MainThread) [goodwe.protocol] Sending: f7038ca0002dbbf3 2024-02-13 07:36:40.740 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a00020064000a0000000100030000000000030174000000000000fce01384000000000000000000000003000000000000000000000003000000000000000000000000000001740000000000000000000000000000000000040005c865 2024-02-13 07:36:40.743 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe GW3600-SBP-20 data in 0.537 seconds (success: True)

2024-02-13 07:36:45.206 DEBUG (MainThread) [goodwe.protocol] Sending: f703891c007d7ae7 2024-02-13 07:36:45.722 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18020d072426000000000000000000000000000000000000000000000000000000000000000000000000094200031383ffffffca00000000000000000000000000000000000000000001ffffffc9fffffff40000006e00000079094300031383000100000000000000000000000000000000000000000000000000000000ffffffdc000000000000000000000000ffffffdc000001690000013d00000e80ffff01e0fffaffffffe100030000000600010200000000000000000000000000000000bc000000930009000000f90001000002df0046000000b40000000000da000900000000000100000000000000000000000001060002002200005744 2024-02-13 07:36:45.754 DEBUG (MainThread) [goodwe.protocol] Sending: f70390880018fc7c 2024-02-13 07:36:46.103 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100e6004a004a0000000a00640001000000220000000700000000000000000000000000000000000000007e95 2024-02-13 07:36:46.128 DEBUG (MainThread) [goodwe.protocol] Sending: f7038ca0002dbbf3 2024-02-13 07:36:46.261 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a00020064000a00000001fff300000000fff30173000000000000ee6c13840000000000000000fffffff30000000000000000fffffff30000000000000000000000000000017300000000000000000000000000000000000400057585 2024-02-13 07:36:46.262 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe GW3600-SBP-20 data in 1.057 seconds (success: True) 2024-02-13 07:36:51.335 DEBUG (MainThread) [goodwe.protocol] Sending: f703891c007d7ae7 2024-02-13 07:36:51.649 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18020d07242c000000000000000000000000000000000000000000000000000000000000000000000000094000031383ffffffdd00000000000000000000000000000000000000000001ffffffdb000000050000006e00000072094100031383000100000000000000000000000000000000000000000000000000000000ffffffd9000000000000000000000000ffffffd8000001690000013d00000e7fffff01e0fffefffffff700030000000600010200000000000000000000000000000000bc000000930009000000f90001000002df0046000000b40000000000da00090000000000010000000000000000000000000106000200160000abc6 2024-02-13 07:36:51.659 DEBUG (MainThread) [goodwe.protocol] Sending: f70390880018fc7c 2024-02-13 07:36:51.750 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100e6004a004a0000000a00640001000000220000000700000000000000000000000000000000000000007e95 2024-02-13 07:36:51.759 DEBUG (MainThread) [goodwe.protocol] Sending: f7038ca0002dbbf3 2024-02-13 07:36:51.918 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a00020064000a000000010003000000000003017300000000000003841384000000000000000000000003000000000000000000000003000000000000000000000000000001730000000000000000000000000000000000040005f8ad 2024-02-13 07:36:51.935 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe GW3600-SBP-20 data in 0.647 seconds (success: True) 2024-02-13 07:36:57.206 DEBUG (MainThread) [goodwe.protocol] Sending: f703891c007d7ae7 2024-02-13 07:36:57.507 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18020d072432000000000000000000000000000000000000000000000000000000000000000000000000094200031384ffffffde00000000000000000000000000000000000000000001ffffffde000000050000006a00000072094300031384000100000000000000000000000000000000000000000000000000000000ffffffd9000000000000000000000000ffffffda000001690000013d00000e81ffff01e0fffefffffff700030000000600010200000000000000000000000000000000bc000000930009000000f90001000002df0046000000b40000000000da00090000000000010000000000000000000000000106000200180000f34f 2024-02-13 07:36:57.510 DEBUG (MainThread) [goodwe.protocol] Sending: f70390880018fc7c 2024-02-13 07:36:57.607 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100e6004a004a0000000a00640001000000220000000700000000000000000000000000000000000000007e95 2024-02-13 07:36:57.643 DEBUG (MainThread) [goodwe.protocol] Sending: f7038ca0002dbbf3 2024-02-13 07:36:57.777 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a00020064000a000000010005000000000005017400000000000005781384000000000000000000000005000000000000000000000005000000000000000000000000000001740000000000000000000000000000000000040005c41a 2024-02-13 07:36:57.778 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe GW3600-SBP-20 data in 0.573 seconds (success: True) 2024-02-13 07:37:02.208 DEBUG (MainThread) [goodwe.protocol] Sending: f703891c007d7ae7 2024-02-13 07:37:02.509 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18020d072437000000000000000000000000000000000000000000000000000000000000000000000000094100031384ffffffdd00000000000000000000000000000000000000000001ffffffdc000000030000006f00000072094300031384000100000000000000000000000000000000000000000000000000000000ffffffd9000000000000000000000000ffffffd9000001690000013d00000e7effff01e0fffefffffff700030000000600010200000000000000000000000000000000bc000000930009000000f90001000002df0046000000b40000000000da000900000000000100000000000000000000000001060002001800003099 2024-02-13 07:37:02.513 DEBUG (MainThread) [goodwe.protocol] Sending: f70390880018fc7c 2024-02-13 07:37:02.605 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100e6004a004a0000000a00640001000000220000000000000000000000000000000000000000000000000822 2024-02-13 07:37:02.608 DEBUG (MainThread) [goodwe.protocol] Sending: f7038ca0002dbbf3 2024-02-13 07:37:02.749 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a00020064000a000000010005000000000005017500000000000005141385000000000000000000000005000000000000000000000005000000000000000000000000000001750000000000000000000000000000000000040005812c 2024-02-13 07:37:02.750 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe GW3600-SBP-20 data in 0.543 seconds (success: True) 2024-02-13 07:37:07.207 DEBUG (MainThread) [goodwe.protocol] Sending: f703891c007d7ae7 2024-02-13 07:37:07.507 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18020d072500000000000000000000000000000000000000000000000000000000000000000000000000093f00031385ffffffd200000000000000000000000000000000000000000001ffffffd0fffffffc0000006c00000076094100031385000100000000000000000000000000000000000000000000000000000000ffffffda000000000000000000000000ffffffd8000001690000013d00000e7cffff01e0fffcffffffed00030000000600010200000000000000000000000000000000bc000000930009000000f90001000002df0046000000b40000000000da000900000000000100000000000000000000000001060002001b0000297f 2024-02-13 07:37:07.513 DEBUG (MainThread) [goodwe.protocol] Sending: f70390880018fc7c 2024-02-13 07:37:07.603 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100e6004a004a0000000a00640001000000220000000700000000000000000000000000000000000000007e95 2024-02-13 07:37:07.610 DEBUG (MainThread) [goodwe.protocol] Sending: f7038ca0002dbbf3 2024-02-13 07:37:07.743 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a00020064000a00000001fffe00000000fffe0172000000000000f7cc13860000000000000000fffffffe0000000000000000fffffffe0000000000000000000000000000017200000000000000000000000000000000000400057821 2024-02-13 07:37:07.745 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe GW3600-SBP-20 data in 0.538 seconds (success: True) 2024-02-13 07:37:12.119 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.cop_warmtepomp_verwarming (<class 'homeassistant.components.template.sensor.SensorTemplate'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('energy') it is using; expected one of ['Wh', 'kWh', 'MWh', 'MJ', 'GJ']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+template%22 2024-02-13 07:37:12.207 DEBUG (MainThread) [goodwe.protocol] Sending: f703891c007d7ae7 2024-02-13 07:37:12.510 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18020d072505000000000000000000000000000000000000000000000000000000000000000000000000094000031383ffffffd500000000000000000000000000000000000000000001ffffffd2fffffffe0000006b00000074094100031383000100000000000000000000000000000000000000000000000000000000ffffffda000000000000000000000000ffffffd7000001690000013d00000e81ffff01e0fffcffffffed00030000000600010200000000000000000000000000000000bc000000930009000000f90001000002df0046000000b40000000000da000900000000000100000000000000000000000001060002001a00000d9d 2024-02-13 07:37:12.515 DEBUG (MainThread) [goodwe.protocol] Sending: f70390880018fc7c 2024-02-13 07:37:12.606 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100e6004a004a0000000a00640001000000220000000700000000000000000000000000000000000000007e95 2024-02-13 07:37:12.609 DEBUG (MainThread) [goodwe.protocol] Sending: f7038ca0002dbbf3 2024-02-13 07:37:12.744 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a00020064000a00000001fffd00000000fffd0173000000000000fc1813860000000000000000fffffffd0000000000000000fffffffd0000000000000000000000000000017300000000000000000000000000000000000400058fbb 2024-02-13 07:37:12.747 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe GW3600-SBP-20 data in 0.541 seconds (success: True) 2024-02-13 07:37:16.157 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.vaillant_flexocompact_vwf_88_4_230v_energyintegral_integral (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement '°min' which is not a valid unit for the device class ('energy') it is using; expected one of ['Wh', 'kWh', 'MWh', 'MJ', 'GJ']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22 2024-02-13 07:37:17.209 DEBUG (MainThread) [goodwe.protocol] Sending: f703891c007d7ae7 2024-02-13 07:37:17.510 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18020d07250a000000000000000000000000000000000000000000000000000000000000000000000000093d00031384ffffffd400000000000000000000000000000000000000000001ffffffdffffffff70000006800000075093e00031384000100000000000000000000000000000000000000000000000000000000ffffffd2000000000000000000000000ffffffdd000001690000013d00000e7bffff01e0fffefffffff700030000000600010200000000000000000000000000000000bc000000930009000000f90001000002df0046000000b40000000000da00090000000000010000000000000000000000000106000200130000086a 2024-02-13 07:37:17.516 DEBUG (MainThread) [goodwe.protocol] Sending: f70390880018fc7c 2024-02-13 07:37:17.606 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100e6004a004a0000000a00640001000000220000000700000000000000000000000000000000000000007e95 2024-02-13 07:37:17.608 DEBUG (MainThread) [goodwe.protocol] Sending: f7038ca0002dbbf3 2024-02-13 07:37:17.741 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a00020064000a00000001000c00000000000c01720000000000000384138500000000000000000000000c00000000000000000000000c000000000000000000000000000001720000000000000000000000000000000000040005b0c3 2024-02-13 07:37:17.743 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe GW3600-SBP-20 data in 0.535 seconds (success: True) 2024-02-13 07:37:22.206 DEBUG (MainThread) [goodwe.protocol] Sending: f703891c007d7ae7 2024-02-13 07:37:22.507 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18020d07250f000000000000000000000000000000000000000000000000000000000000000000000000093200031384ffffffd700000000000000000000000000000000000000000001ffffffd7ffffffff0000006c00000073093300031384000100000000000000000000000000000000000000000000000000000000ffffffd8000000000000000000000000ffffffd9000001690000013d00000e69ffff01e0fffcffffffed00030000000600010200000000000000000000000000000000bc000000930009000000f90001000002df0046000000b40000000000da000900000000000100000000000000000000000001060002001b00004312 2024-02-13 07:37:22.511 DEBUG (MainThread) [goodwe.protocol] Sending: f70390880018fc7c 2024-02-13 07:37:22.612 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100e6004a004a0000000a00640001000000220000000700000000000000000000000000000000000000007e95 2024-02-13 07:37:22.615 DEBUG (MainThread) [goodwe.protocol] Sending: f7038ca0002dbbf3 2024-02-13 07:37:22.750 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a00020064000a00000001ffff00000000ffff016f000000000000fe7013850000000000000000ffffffff0000000000000000ffffffff0000000000000000000000000000016f0000000000000000000000000000000000040005eddc 2024-02-13 07:37:22.752 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe GW3600-SBP-20 data in 0.546 seconds (success: True) 2024-02-13 07:37:27.207 DEBUG (MainThread) [goodwe.protocol] Sending: f703891c007d7ae7 2024-02-13 07:37:27.508 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18020d072514000000000000000000000000000000000000000000000000000000000000000000000000093300031385ffffffdf00000000000000000000000000000000000000000001ffffffde000000050000006d00000070093500031385000100000000000000000000000000000000000000000000000000000000ffffffd9000000000000000000000000ffffffd9000001690000013d00000e6bffff01e0fffefffffff700030000000600010200000000000000000000000000000000bc000000930009000000f90001000002df0046000000b40000000000da000900000000000100000000000000000000000001060002001600003e88 2024-02-13 07:37:27.512 DEBUG (MainThread) [goodwe.protocol] Sending: f70390880018fc7c 2024-02-13 07:37:27.610 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100e6004a004a0000000a00640001000000220000000700000000000000000000000000000000000000007e95 2024-02-13 07:37:27.616 DEBUG (MainThread) [goodwe.protocol] Sending: f7038ca0002dbbf3 2024-02-13 07:37:27.749 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a00020064000a000000010009000000000009016e000000000000070813850000000000000000000000090000000000000000000000090000000000000000000000000000016e00000000000000000000000000000000000400054b19 2024-02-13 07:37:27.751 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe GW3600-SBP-20 data in 0.545 seconds (success: True) 2024-02-13 07:37:32.207 DEBUG (MainThread) [goodwe.protocol] Sending: f703891c007d7ae7 2024-02-13 07:37:32.507 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18020d072519000000000000000000000000000000000000000000000000000000000000000000000000092c00031383ffffffe000000000000000000000000000000000000000000001ffffffe100000007000000640000006f092e00031383000100000000000000000000000000000000000000000000000000000000ffffffda000000000000000000000000ffffffdc000001690000013d00000e60ffff01e0fffefffffff700030000000600010200000000000000000000000000000000bc000000930009000000f90001000002df0046000000b40000000000da00090000000000010000000000000000000000000106000200180000bbdf 2024-02-13 07:37:32.510 DEBUG (MainThread) [goodwe.protocol] Sending: f70390880018fc7c 2024-02-13 07:37:32.603 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100e6004a004a0000000a00640001000000220000000700000000000000000000000000000000000000007e95 2024-02-13 07:37:32.606 DEBUG (MainThread) [goodwe.protocol] Sending: f7038ca0002dbbf3 2024-02-13 07:37:32.738 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a00020064000a000000010008000000000008016e000000000000070813850000000000000000000000080000000000000000000000080000000000000000000000000000016e0000000000000000000000000000000000040005d815 2024-02-13 07:37:32.740 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe GW3600-SBP-20 data in 0.534 seconds (success: True)

craigcurtin-dev commented 7 months ago

Well it is talking to it OK and has incorrectly identified it as an ET series - rather than the SBP G2/V2 series.

You might want to go over to here and try this code which is for the SBP V1 series and see what that returns

https://github.com/Uksa007/goodwe

Would be worth seeing the python logs when you run this in the test code

Craig

nbalcaen commented 7 months ago

I could use some help how to change the library.

nbalcaen commented 7 months ago

When I paste the code files in the directory custom_components/goodwe, I get an error:

image

Clearly I'm doing something wrong. So any help how I can change the library of the custom integration would be usefull.

craigcurtin-dev commented 7 months ago

I amnot really a HA user - all my stuff is done through Node Red (Javascript)

If it was me i would take the library onto a linux box and run it from the CLI rather than trying to get it into HA

Craig

mletenay commented 7 months ago

Well, the ET is not incorrectly identified. It may be a bit misleading but it is a protocol kind - there are 3 - ES, DT and ET. The ES is the old one (pre modbus) for ES v1, the ET and DT are modbus based for hybrid and grid-only. The ESv2 BPv2 are talking modbus now, so they belong to ET protocol and no, the modbus registers are unchanged, resp. common to all models.

As for the GW6000ES20 - it does not mistakenly selects it. You see it in the response - it is the model name reported by the inverter itself. aa55f7034200790e920000353336303053504e3233325730303035>47573630303045533230<0006000619ce0008016a30343034382d30362d53303630323032302d30382d533031a121

mletenay commented 7 months ago

The only weird, problematic part is that when decoding the eco_mode settings, your inverter reports -200 as value of charge/discharge power percentage. Which is not allowed by the current code, the values may be -100:100. Latest goodwe docs specify there [-100,100]/NA/[0,10000]/[0,50000], which is a bit odd, but -200 is not allowed there either. I may relax that check, but need to investigate it bit more.

Regarding the name mismatch, it is odd. Didn't you accidentally flashed a wrong firmware ?

craigcurtin-dev commented 7 months ago

Thanks for taking the time to respond. I think it will be a bit more than that with the new G2 Series of inverters (e.g. the GW15-29.9ET hybrids) and the new SBP G2 definitely appear to have additional/changed registers.

I am waiting on GoodWe Australia to supply me with the Modbus Map for these - for example the GW25ET has two battery ports and 3 PV inputs - you can (apparently) in Solargo - command the inverter to discharge from either battery port (i.e. they are seen as individual HV units)

I am also helping out someone with a SBP5000-G2 that he claims appears to have completely different registers (i am yet to see the output to confirm this) and does not respond to the same command set

Craig

rthorntn commented 7 months ago

Hello folks!

I'm the someone Craig is talking about. My SBP G2 errors (in node-red) when I try to use the status queries that Craig supplied to me, the serial_no/model query on Craigs is 0x200 and if you read quantity 14 you get the serial and model. This fails on mine but 0x07D0 gives me the serial but no model.

0x0506 should give a bunch of status info, this doesn't work on mine.

I'd love to figure out the new map but I don't have any experience with Modbus and I'm not a programmer (I'm good with networks, Linux and electronics), if there's a way I can help, for example a script I can run...

Cheers Richard

nbalcaen commented 7 months ago

Same for me, if I can help.. I'm running on Hassio, opening new libraries from PyPi is a bit difficult

mletenay commented 7 months ago

@craigcurtin-dev The registers of the ETT (ET >15k) and ES G2 are known. Look here https://github.com/marcelblijleven/goodwe/issues/62#issuecomment-1826360051 And no, they are not different, there are just few more additional registers there.

mletenay commented 7 months ago

Anyway, focus on the topic. There is proper support for gen2 ES/BP inverters there. Modbus, not the old gen1 aa55 aka 105 protocol. (And yes, it seems newer firmwares no longer provide model names, just serial numbers.)

The only trouble is the title of this ticket - the eco mode - which does not work from simple reason - inverter seems to respond 200% power while my code allows only -100:+100% I will relax that check if you confirm you can set 200% values in SolarGo (some kind of overdrive ???)

mletenay commented 7 months ago

Just FYI - regarding this 200% - there came some help here - https://github.com/marcelblijleven/goodwe/issues/71 and it's possible they changed encoding so 200 should mean 20.0%. Will investigate....

craigcurtin-dev commented 7 months ago

Good one thanks – did not realise you had gotten the full register set – great work !

Craig

From: mletenay @.> Sent: Friday, February 16, 2024 8:37 AM To: mletenay/home-assistant-goodwe-inverter @.> Cc: Craig Curtin @.>; Mention @.> Subject: Re: [mletenay/home-assistant-goodwe-inverter] ECO Charge/Discharge not available (Issue #249)

@craigcurtin-devhttps://github.com/craigcurtin-dev The registers of the ETT (ET >15k) and ES G2 are known. Look here marcelblijleven/goodwe#62 (comment)https://github.com/marcelblijleven/goodwe/issues/62#issuecomment-1826360051 And no, there are not different, there are just few more additional registers there.

— Reply to this email directly, view it on GitHubhttps://github.com/mletenay/home-assistant-goodwe-inverter/issues/249#issuecomment-1947379157, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM6OSTYB46CDCDBCN2PDWZDYTZ5XJAVCNFSM6AAAAABC7NH4P2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGM3TSMJVG4. You are receiving this because you were mentioned.Message ID: @.**@.>>

nbalcaen commented 7 months ago

In the above logs the Eco mode was not set in the SolarGo app. I've made a new log when I set the eco charge in the SolarGo app on.

In the app: image

The log:

2024-02-16 07:26:58.792 DEBUG (MainThread) [goodwe] Connecting to ET family inverter at 192.168.1.108. 2024-02-16 07:26:58.793 DEBUG (MainThread) [goodwe.inverter] Creating lock instance for current event loop. 2024-02-16 07:27:01.325 DEBUG (MainThread) [goodwe.protocol] Sending: f70388b800213ac1 2024-02-16 07:27:02.852 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7034200790e920000353336303053504e3233325730303035475736303030455332300006000619ce0008016a30343034382d30362d53303630323032302d30382d533031a121 2024-02-16 07:27:03.088 DEBUG (MainThread) [goodwe] Connected to inverter GW6000ES20, S/N:myserialnumber. 2024-02-16 07:27:03.160 DEBUG (MainThread) [goodwe.protocol] Sending: f703891c007d7ae7 22024-02-16 07:27:03.534 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa180210071b01000000000000000000000000000000000000000000000000000000000000000000000000094900031383ffffffec00000000000000000000000000000000000000000001ffffffec0000000b0000006b0000006e094a00031383000100000000000000000000000000000000000000000000000000000000ffffffe2000000000000000000000000ffffffe40000016b0000013d00000e8bffff01e6fffffffffffd00030000000600010200000000000000000000000000000000f0000000db000000000155000300000419001b000000f8000100000113000000000000000100000000000000000000000001060002000000006e2a 2024-02-16 07:27:05.677 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100d4004a004a0000000b0064000100000022000000070000000000000000000000000000000000000000a09f 2024-02-16 07:27:06.800 DEBUG (MainThread) [goodwe.protocol] Sending: f7038ca0002dbbf3 2024-02-16 07:27:07.236 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a00020062000a00000001000b00000000000b01d700000000000007d0138500000000000000000000000b00000000000000000000000b000000000000000000000000000001d70000000000000000000000000000000000040005e7b5 2024-02-16 07:27:07.254 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 4.166 seconds (success: True) 2024-02-16 07:27:09.790 DEBUG (MainThread) [goodwe.protocol] Sending: f703b090000337b0 2024-02-16 07:27:10.532 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70306180210071b08cafe 2024-02-16 07:27:10.557 DEBUG (MainThread) [goodwe.protocol] Sending: f703b996000155ec 2024-02-16 07:27:10.643 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030227106a6d 2024-02-16 07:27:10.652 DEBUG (MainThread) [goodwe.protocol] Sending: f703b798000136c7 2024-02-16 07:27:10.808 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703020005b052 2024-02-16 07:27:10.837 DEBUG (MainThread) [goodwe.protocol] Sending: f703b9ec00017435 2024-02-16 07:27:10.881 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-16 07:27:10.893 DEBUG (MainThread) [goodwe.protocol] Sending: f703b12c00017669 2024-02-16 07:27:10.933 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70302000af056 2024-02-16 07:27:10.936 DEBUG (MainThread) [goodwe.protocol] Sending: f703b9bb00068427 2024-02-16 07:27:10.988 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173b067fff38002d0fff1cd6 2024-02-16 07:27:10.988 DEBUG (MainThread) [custom_components.goodwe.select] Could not read inverter operation mode Traceback (most recent call last): File "/config/custom_components/goodwe/select.py", line 60, in async_setup_entry eco_mode = await inverter.read_setting("eco_mode_1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 546, in read_setting return setting.read_value(response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/sensor.py", line 518, in readvalue raise ValueError(f"{self.id}: on_off value {self.on_off} out of range.") ValueError: eco_mode_1: on_off value 6 out of range. 2024-02-16 07:27:11.013 DEBUG (MainThread) [goodwe.protocol] Sending: f703b9bb00068427 2024-02-16 07:27:11.070 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173b067fff38002d0fff1cd6 2024-02-16 07:27:11.071 DEBUG (MainThread) [custom_components.goodwe.number] Could not read inverter setting eco_mode_power 2024-02-16 07:27:11.073 DEBUG (MainThread) [goodwe.protocol] Sending: f703b9bb00068427 2024-02-16 07:27:11.129 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173b067fff38002d0fff1cd6 2024-02-16 07:27:11.130 DEBUG (MainThread) [custom_components.goodwe.number] Could not read inverter setting eco_mode_soc 2024-02-16 07:27:15.009 DEBUG (MainThread) [goodwe.protocol] Sending: f703891c007d7ae7 2024-02-16 07:27:15.312 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa180210071b0d000000000000000000000000000000000000000000000000000000000000000000000000094600031383ffffffec00000000000000000000000000000000000000000001ffffffec00000004000000690000006e094700031383000100000000000000000000000000000000000000000000000000000000ffffffe6000000000000000000000000ffffffe70000016b0000013d00000e87ffff01e60000fffffffb00030000000600010200000000000000000000000000000000f0000000db000000000155000300000419001b000000f8000100000113000000000000000100000000000000000000000001060002000000008431 2024-02-16 07:27:15.316 DEBUG (MainThread) [goodwe.protocol] Sending: f70390880018fc7c

mletenay commented 7 months ago

The EcoMode decoding was rewritten to support the new modes which include months and its type detection was also improved. Released in v0.9.9.15 Enjoy.

nbalcaen commented 7 months ago

Don't want to be the partypooper, but the update didn't change anything. I'm still facing the same struggle where the modes aren't available and the battery SoC is missing.

2024-02-18 16:25:35.318 DEBUG (MainThread) [goodwe] Connecting to ET family inverter at 192.168.1.108. 2024-02-18 16:25:35.318 DEBUG (MainThread) [goodwe.inverter] Creating lock instance for current event loop. 2024-02-18 16:25:37.110 DEBUG (MainThread) [goodwe.protocol] Sending: READ 33 registers from 35000 (f70388b800213ac1) 2024-02-18 16:25:40.165 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7034200790e920000353336303053504e3233325730303035475736303030455332300006000619ce0008016a30343034382d30362d53303630323032302d30382d533031a121 2024-02-18 16:25:40.679 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 16:25:40.785 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173b5500fed4002d0fff473e 2024-02-18 16:25:41.355 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47589 (f703b9e50006e5f5) 2024-02-18 16:25:42.471 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000000055000000000000002035 2024-02-18 16:25:43.025 DEBUG (MainThread) [goodwe] Connected to inverter GW6000ES20, S/N:serialnumber. 2024-02-18 16:25:43.251 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 16:25:43.913 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021210191f000000000000000000000000000000000000000000000000000000000000000000000000092600501383000007460000000000000000000000000000000000000000000100000749fffffffafffffff7000007460928000313830001000000000000000000000000000000000000000000000000000000000000074b0000000000000000000000000000074e000001880000016900000e5affff01d501ad000007d7000200000006000102000000000000000000000000000000013400000114001b000001b800090000052a00570000014700050000015e001e0000000000000000000000000000000000000140000307f10000c2c5 2024-02-18 16:25:43.999 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 16:25:44.184 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100d8004a004a0000000d0064000100000022000000070000000000000000000000000000000000000000e602 2024-02-18 16:25:44.229 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 16:25:44.740 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a000000010000000000000000fa25000000000000fed41385000000000000000000000000000000000000000000000000000000000000000000000000fffffa2500000000000000000000000000000000000400059783 2024-02-18 16:25:44.746 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 1.720 seconds (success: True) 2024-02-18 16:25:46.529 DEBUG (MainThread) [goodwe.protocol] Sending: READ 3 registers from 45200 (f703b090000337b0) 2024-02-18 16:25:47.100 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70306180212101922fbfd 2024-02-18 16:25:47.238 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47510 (f703b996000155ec) 2024-02-18 16:25:47.295 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030227106a6d 2024-02-18 16:25:47.425 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47000 (f703b798000136c7) 2024-02-18 16:25:47.476 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-18 16:25:47.485 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47596 (f703b9ec00017435) 2024-02-18 16:25:47.527 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-18 16:25:47.531 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 45356 (f703b12c00017669) 2024-02-18 16:25:47.575 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70302000af056 2024-02-18 16:25:47.580 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 16:25:47.654 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173b5500fed4002d0fff473e 2024-02-18 16:25:47.659 DEBUG (MainThread) [custom_components.goodwe.select] Could not read inverter operation mode Traceback (most recent call last): File "/config/custom_components/goodwe/select.py", line 60, in async_setup_entry eco_mode = await inverter.read_setting("eco_mode_1") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 553, in read_setting return await self._read_setting(setting) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 558, in _read_setting return setting.read_value(response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/sensor.py", line 597, in readvalue raise ValueError(f"{self.id}: power value {self.power} out of range.") ValueError: eco_mode_1: power value -300 out of range. 2024-02-18 16:25:47.678 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 16:25:47.735 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173b5500fed4002d0fff473e 2024-02-18 16:25:47.738 DEBUG (MainThread) [custom_components.goodwe.number] Could not read inverter setting eco_mode_power 2024-02-18 16:25:47.741 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 16:25:47.798 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173b5500fed4002d0fff473e 2024-02-18 16:25:47.812 DEBUG (MainThread) [custom_components.goodwe.number] Could not read inverter setting eco_mode_soc 2024-02-18 16:25:51.976 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 16:25:52.277 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa1802121019280000000000000000000000000000000000000000000000000000000000000000000000000928005013840000074f000000000000000000000000000000000000000000010000074cfffffffd000000070000074f092a000313840001000000000000000000000000000000000000000000000000000000000000075200000000000000000000000000000750000001880000016a00000e5effff01d501af000007dc000200000006000102000000000000000000000000000000013400000114001b000001b800090000052a00570000014700050000015e001e0000000000000000000000000000000000000140000307f50000ac87 2024-02-18 16:25:52.281 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 16:25:52.371 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100d8004a004a0000000d0064000100000022000000070000000000000000000000000000000000000000e602 2024-02-18 16:25:52.375 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 16:25:52.508 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001000e00000000000efa1b000000000000fed4138400000000000000000000000e00000000000000000000000e000000000000000000000000fffffa1b000000000000000000000000000000000004000536e9 2024-02-18 16:25:52.511 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.536 seconds (success: True) 2024-02-18 16:25:56.976 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 16:25:57.275 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021210192d000000000000000000000000000000000000000000000000000000000000000000000000091d00501385000007430000000000000000000000000000000000000000000100000750fffffff90000000200000743091f000313850001000000000000000000000000000000000000000000000000000000000000073f0000000000000000000000000000074d000001890000016a00000e51ffff01d501af000007dc000200000006000102000000000000000000000000000000013400000114001b000001b800090000052b00580000014700050000015e001e0000000000000000000000000000000000000140000307f400002496 2024-02-18 16:25:57.279 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 16:25:57.367 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100d8004a004a0000000c00640001000000220000000700000000000000000000000000000000000000008bc2 2024-02-18 16:25:57.371 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 16:25:57.505 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a000000010007000000000007fa32000000000000012c1385000000000000000000000007000000000000000000000007000000000000000000000000fffffa32000000000000000000000000000000000004000595d6 2024-02-18 16:25:57.507 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.532 seconds (success: True)

2024-02-18 16:26:02.063 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 16:26:02.541 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa180212101932000000000000000000000000000000000000000000000000000000000000000000000000092e0050138400000757000000000000000000000000000000000000000000010000075afffffffcfffffffd000007570930000313840001000000000000000000000000000000000000000000000000000000000000075a0000000000000000000000000000075e000001890000016a00000e5fffff01d501b2000007ea000200000006000102000000000000000000000000000000013400000114001b000001b800090000052b00580000014700050000015e001e0000000000000000000000000000000000000140000308010000aaeb 2024-02-18 16:26:02.680 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 16:26:02.857 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100d8004a004a0000000c00640001000000220000000700000000000000000000000000000000000000008bc2 2024-02-18 16:26:02.990 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 16:26:03.133 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a000000010000000000000000f9f700000000000000001384000000000000000000000000000000000000000000000000000000000000000000000000fffff9f70000000000000000000000000000000000040005262f 2024-02-18 16:26:03.154 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 1.111 seconds (success: True)

Brumhilde commented 7 months ago

@nbalcaen Please reopen the issue. Setting modes isn't available with GW15K-ET either. Battery SoC is there for me though (sensor.battery_state_of_charge).

Version 0.9.9.16 and HA Core 2024.2.2

nbalcaen commented 7 months ago

I can't re-open the issue, @mletenay will have to do that.

I have been investigating some more, here are some remarques:

  1. For the modes, Eco mode Power and Eco mode SoC to be visible, you need to setup the economic mode in the SolarGo app. If not, they're not visisble in the integration. @mletenay Maybe there's a workaround possible to avoid this extra step?
  2. Switching modes are functional except eco charge and eco discharge. Those gave errors

image

image

  1. Inverter is not responding to any changes in Eco mode power or Eco mode SoC. -> In the SolarGo app everything stays the same.
nbalcaen commented 7 months ago

the logs of these events:

2024-02-18 17:03:09.864 DEBUG (MainThread) [goodwe] Connecting to ET family inverter at IP_ADDRESS. 2024-02-18 17:03:09.865 DEBUG (MainThread) [goodwe.inverter] Creating lock instance for current event loop. 2024-02-18 17:03:12.572 DEBUG (MainThread) [goodwe.protocol] Sending: READ 33 registers from 35000 (f70388b800213ac1) 2024-02-18 17:03:15.250 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7034200790e920000353336303053504e3233325730303035475736303030455332300006000619ce0008016a30343034382d30362d53303630323032302d30382d533031a121 2024-02-18 17:03:15.888 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:03:16.487 WARNING (MainThread) [homeassistant.components.sensor] Platform rest not ready yet; Retrying in background in 30 seconds 2024-02-18 17:03:16.489 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173bf97ffed400320ffff212 2024-02-18 17:03:16.635 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47589 (f703b9e50006e5f5) 2024-02-18 17:03:17.910 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c00000000037f0000000000002be4 2024-02-18 17:03:18.474 DEBUG (MainThread) [goodwe] Connected to inverter GW6000ES20, S/N:myserialnumber. 2024-02-18 17:03:18.539 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:03:19.193 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa180212110313000000000000000000000000000000000000000000000000000000000000000000000000092500341391fffffb5200000000000000000000000000000000000000000001fffffb50fffffc4900000000000004ae092600031391000100000000000000000000000000000000000000000000000000000000ffffff08000000000000000000000000ffffff070000019c0000017600000e58ffff01edff24fffffbbb000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000204510000c8dd 2024-02-18 17:03:19.315 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:03:19.441 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:03:19.464 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:03:19.710 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001fc4900000000fc49018f000000000000996813900000000000000000fffffc490000000000000000fffffc490000000000000000000000000000018f0000000000000000000000000000000000040005e4fb 2024-02-18 17:03:19.774 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 1.299 seconds (success: True) 2024-02-18 17:03:22.874 DEBUG (MainThread) [goodwe.protocol] Sending: READ 3 registers from 45200 (f703b090000337b0) 2024-02-18 17:03:23.029 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70306180212110317614a 2024-02-18 17:03:23.043 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47510 (f703b996000155ec) 2024-02-18 17:03:23.092 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030227106a6d 2024-02-18 17:03:23.119 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47000 (f703b798000136c7) 2024-02-18 17:03:23.160 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703020005b052 2024-02-18 17:03:23.164 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47596 (f703b9ec00017435) 2024-02-18 17:03:23.207 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-18 17:03:23.210 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 45356 (f703b12c00017669) 2024-02-18 17:03:23.262 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70302000af056 2024-02-18 17:03:23.266 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:03:23.323 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173bf97ffed400320ffff212 2024-02-18 17:03:23.327 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:03:23.397 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173bf97ffed400320ffff212 2024-02-18 17:03:23.421 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:03:23.473 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173bf97ffed400320ffff212 2024-02-18 17:03:28.164 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:03:28.464 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211031c00000000000000000000000000000000000000000000000000000000000000000000000009260034138ffffffb5200000000000000000000000000000000000000000001fffffb50fffffc53fffffffc000004ae09270003138f000100000000000000000000000000000000000000000000000000000000fffffefd000000000000000000000000fffffefb0000019c0000017600000e5affff01edff24fffffbbb000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e000000000001000000000000000000000000010400020450000014ea 2024-02-18 17:03:28.469 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:03:28.560 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:03:28.568 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:03:28.701 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001fc5400000000fc54018b000000000000996813900000000000000000fffffc540000000000000000fffffc540000000000000000000000000000018b0000000000000000000000000000000000040005c61f 2024-02-18 17:03:28.702 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.539 seconds (success: True) 2024-02-18 17:03:50.163 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:03:50.463 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211033200000000000000000000000000000000000000000000000000000000000000000000000009380033138dfffffb5100000000000000000000000000000000000000000001fffffb4effffff1000000000000004af09390003138d000100000000000000000000000000000000000000000000000000000000fffffc3a000000000000000000000000fffffc370000019c0000017700000e6effff01edff24fffffbbb000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e000000000001000000000000000000000000010400020450000094cf 2024-02-18 17:03:50.466 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:03:50.556 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:03:50.559 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:03:50.693 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001ff0100000000ff0101bc0000000000005100138e0000000000000000ffffff010000000000000000ffffff01000000000000000000000000000001bc00000000000000000000000000000000000400059bdb 2024-02-18 17:03:50.694 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.532 seconds (success: True) 2024-02-18 17:03:55.208 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:03:55.510 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa180212110337000000000000000000000000000000000000000000000000000000000000000000000000092c0034138dfffffb5200000000000000000000000000000000000000000001fffffb50fffffd7200000008000004ae092d0003138d000100000000000000000000000000000000000000000000000000000000fffffe1e000000000000000000000000fffffe1d0000019c0000017700000e65ffff01edff24fffffbbb000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000204510000b6a6 2024-02-18 17:03:55.514 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:03:55.604 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:03:55.607 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:03:55.660 DEBUG (MainThread) [custom_components.goodwe.select] Setting eco mode SoC to 19 2024-02-18 17:03:55.666 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/goodwe/select.py", line 174, in update_eco_mode_soc await self._inverter.set_operation_mode( File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 641, in set_operation_mode raise ValueError() ValueError 2024-02-18 17:03:55.740 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001fd0e00000000fd0e014f000000000000a070138e0000000000000000fffffd0e0000000000000000fffffd0e0000000000000000000000000000014f000000000000000000000000000000000004000586e4 2024-02-18 17:03:55.742 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.560 seconds (success: True) 2024-02-18 17:03:57.006 DEBUG (MainThread) [custom_components.goodwe.select] Setting eco mode power to 53 2024-02-18 17:03:57.012 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:03:57.071 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173bf97ffed400320ffff212 2024-02-18 17:03:57.076 DEBUG (MainThread) [goodwe.protocol] Sending: f710b9bb00060c0000173bf97ffdee00130fffff64 2024-02-18 17:03:57.133 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9bb000601e4 2024-02-18 17:03:57.136 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47555 (f703b9c3000145fc) 2024-02-18 17:03:57.178 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70302f97f73e1 2024-02-18 17:03:57.181 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 127 to register 47555 (f706b9c3007f09dc) 2024-02-18 17:03:57.223 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9c3007f09dc 2024-02-18 17:03:57.226 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47561 (f703b9c9000165fe) 2024-02-18 17:03:57.266 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030255004f01 2024-02-18 17:03:57.270 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47561 (f706b9c90000683e) 2024-02-18 17:03:57.322 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9c90000683e 2024-02-18 17:03:57.325 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47567 (f703b9cf000185ff) 2024-02-18 17:03:57.365 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030255004f01 2024-02-18 17:03:57.367 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47567 (f706b9cf0000883f) 2024-02-18 17:03:57.409 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9cf0000883f 2024-02-18 17:03:57.412 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 3 to register 47000 (f706b79800037b06) 2024-02-18 17:03:57.458 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b79800037b06 2024-02-18 17:03:57.461 DEBUG (MainThread) [goodwe.protocol] Sending: f710b99700020400010000a8f9 2024-02-18 17:03:57.507 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9970002c1ee 2024-02-18 17:03:59.336 DEBUG (MainThread) [custom_components.goodwe.select] Setting eco mode power to 87 2024-02-18 17:03:59.340 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:03:59.392 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173bf97ffdee00130fff7a2e 2024-02-18 17:03:59.395 DEBUG (MainThread) [goodwe.protocol] Sending: f710b9bb00060c0000173bf97ffc9a00130fff4ebe 2024-02-18 17:03:59.450 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9bb000601e4 2024-02-18 17:03:59.453 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47555 (f703b9c3000145fc) 2024-02-18 17:03:59.495 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70302007f31b1 2024-02-18 17:03:59.498 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 127 to register 47555 (f706b9c3007f09dc) 2024-02-18 17:03:59.540 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9c3007f09dc 2024-02-18 17:03:59.542 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47561 (f703b9c9000165fe) 2024-02-18 17:03:59.585 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-18 17:03:59.590 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47561 (f706b9c90000683e) 2024-02-18 17:03:59.633 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9c90000683e 2024-02-18 17:03:59.636 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47567 (f703b9cf000185ff) 2024-02-18 17:03:59.676 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-18 17:03:59.680 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47567 (f706b9cf0000883f) 2024-02-18 17:03:59.722 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9cf0000883f 2024-02-18 17:03:59.725 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 3 to register 47000 (f706b79800037b06) 2024-02-18 17:03:59.768 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b79800037b06 2024-02-18 17:03:59.771 DEBUG (MainThread) [goodwe.protocol] Sending: f710b99700020400010000a8f9 2024-02-18 17:03:59.820 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9970002c1ee 2024-02-18 17:04:00.164 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:00.465 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211040000000000000000000000000000000000000000000000000000000000000000000000000009240059138dfffff7d600000000000000000000000000000000000000000001fffff3dffffff8f4ffffffe90000082a09240003138d00010000000000000000000000000000000000000000000000000000000000000215000000000000000000000000fffffe1f0000019c0000017700000e3effff01edfd84fffff53f000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e000000000001000000000000000000000000010400020c8200006031 2024-02-18 17:04:00.470 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:00.559 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:00.563 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:00.627 DEBUG (MainThread) [custom_components.goodwe.select] Setting eco mode SoC to 77 2024-02-18 17:04:00.697 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001f3f700000000f3f701680000000000008324138e0000000000000000fffff3f70000000000000000fffff3f7000000000000000000000000000001680000000000000000000000000000000000040005c698 2024-02-18 17:04:00.699 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.536 seconds (success: True) 2024-02-18 17:04:00.724 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:04:00.776 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173bf97ffc9a00130fffcbf4 2024-02-18 17:04:00.781 DEBUG (MainThread) [goodwe.protocol] Sending: f710b9bb00060c0000173bf97ffc9a004d0fff2f6c 2024-02-18 17:04:00.837 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9bb000601e4 2024-02-18 17:04:00.840 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47555 (f703b9c3000145fc) 2024-02-18 17:04:00.881 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70302007f31b1 2024-02-18 17:04:00.884 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 127 to register 47555 (f706b9c3007f09dc) 2024-02-18 17:04:00.926 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9c3007f09dc 2024-02-18 17:04:00.930 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47561 (f703b9c9000165fe) 2024-02-18 17:04:00.971 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-18 17:04:00.975 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47561 (f706b9c90000683e) 2024-02-18 17:04:01.016 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9c90000683e 2024-02-18 17:04:01.020 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47567 (f703b9cf000185ff) 2024-02-18 17:04:01.063 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-18 17:04:01.066 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47567 (f706b9cf0000883f) 2024-02-18 17:04:01.108 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9cf0000883f 2024-02-18 17:04:01.111 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 3 to register 47000 (f706b79800037b06) 2024-02-18 17:04:01.153 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b79800037b06 2024-02-18 17:04:01.155 DEBUG (MainThread) [goodwe.protocol] Sending: f710b99700020400010000a8f9 2024-02-18 17:04:01.202 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9970002c1ee 2024-02-18 17:04:05.165 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:05.466 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211040500000000000000000000000000000000000000000000000000000000000000000000000009090092138bfffff2be00000000000000000000000000000000000000000001fffff2b7fffff3d1ffffffe600000d4209080003138b000100000000000000000000000000000000000000000000000000000000fffffef3000000000000000000000000fffffeed0000019d0000017700000e20ffff01f1fd86fffff385000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e000000000001000000000000000000000000010400020c820000924e 2024-02-18 17:04:05.470 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:05.559 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:05.562 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:05.694 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001f3c700000000f3c701680000000000007bb8138d0000000000000000fffff3c70000000000000000fffff3c700000000000000000000000000000168000000000000000000000000000000000004000533e7 2024-02-18 17:04:05.696 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.533 seconds (success: True) 2024-02-18 17:04:10.164 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:10.465 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211040a00000000000000000000000000000000000000000000000000000000000000000000000009010092138efffff2c300000000000000000000000000000000000000000001fffff2bdfffff3d20000001600000d3d09000003138e000100000000000000000000000000000000000000000000000000000000fffffef4000000000000000000000000fffffeee0000019d0000017700000e29ffff01f1fd86fffff380000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e000000000001000000000000000000000000010400020c8200008a39 2024-02-18 17:04:10.468 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:10.558 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:10.561 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:10.695 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001f3cc00000000f3cc016c0000000000007bb8138d0000000000000000fffff3cc0000000000000000fffff3cc0000000000000000000000000000016c00000000000000000000000000000000000400054be1 2024-02-18 17:04:10.696 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.534 seconds (success: True) 2024-02-18 17:04:11.346 DEBUG (MainThread) [custom_components.goodwe.select] Settin operation mode to general, power 87, max SoC 77 2024-02-18 17:04:11.351 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47000 (f706b79800003b07) 2024-02-18 17:04:11.394 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b79800003b07 2024-02-18 17:04:11.396 DEBUG (MainThread) [goodwe.protocol] Sending: f710b99700020400010000a8f9 2024-02-18 17:04:11.446 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9970002c1ee 2024-02-18 17:04:11.449 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 1 to register 47533 (f706b9ad0001e821) 2024-02-18 17:04:11.499 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9ad0001e821 2024-02-18 17:04:15.163 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:15.464 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211040f000000000000000000000000000000000000000000000000000000000000000000000000091e000c138dfffffef000000000000000000000000000000000000000000001fffffef2ffffffef0000000400000112091f0003138d000100000000000000000000000000000000000000000000000000000000fffffefe000000000000000000000000ffffff000000019d0000017700000e4bffff01f1ffd7ffffff35000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200710000242d 2024-02-18 17:04:15.468 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:15.558 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e0064000100000022000000000000000000000000000000000000000000000000298f 2024-02-18 17:04:15.561 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:15.694 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001002800000000002801a2000000000000f1f0138e000000000000000000000028000000000000000000000028000000000000000000000000000001a20000000000000000000000000000000000040005a863 2024-02-18 17:04:15.696 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.534 seconds (success: True) 2024-02-18 17:04:20.163 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:20.505 DEBUG (MainThread) [goodwe.modbus] Response has unexpected length: 66, expected 250. 2024-02-18 17:04:20.505 DEBUG (MainThread) [goodwe.protocol] Received invalid response: aa55f7034200790e920000353336303053504e3233325730303035475736303030455332300006000619ce0008016a30343034382d30362d53303630323032302d30382d533031a121aa55f703fa1802121104140000000000000000000000000000000000000000000000000000000000000000000000000927000a138cffffff2500000000000000000000000000000000000000000001ffffff290000002d00000003000000db09280003138c000100000000000000000000000000000000000000000000000000000000fffffef4000000000000000000000000fffffef90000019d0000017700000e54ffff01edffe1ffffff67000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e00000000000100000000000000000000000001040002009b0000e0f2 2024-02-18 17:04:20.505 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #1/10 2024-02-18 17:04:20.806 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa1802121104150000000000000000000000000000000000000000000000000000000000000000000000000927000a138cffffff2500000000000000000000000000000000000000000001ffffff290000002d00000003000000db09280003138c000100000000000000000000000000000000000000000000000000000000fffffef5000000000000000000000000fffffefa0000019d0000017700000e54ffff01edffe1ffffff67000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e00000000000100000000000000000000000001040002009b0000c535 2024-02-18 17:04:20.810 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:20.899 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:20.902 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:21.038 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001002a00000000002a01930000000000002af8138d00000000000000000000002a00000000000000000000002a000000000000000000000000000001930000000000000000000000000000000000040005dbb8 2024-02-18 17:04:21.040 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.878 seconds (success: True) 2024-02-18 17:04:26.163 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:26.499 DEBUG (MainThread) [goodwe.modbus] Response has unexpected length: 66, expected 250. 2024-02-18 17:04:26.499 DEBUG (MainThread) [goodwe.protocol] Received invalid response: aa55f7034200790e920000353336303053504e3233325730303035475736303030455332300006000619ce0008016a30343034382d30362d53303630323032302d30382d533031a121aa55f703fa18021211041a0000000000000000000000000000000000000000000000000000000000000000000000000925000c138dffffff0400000000000000000000000000000000000000000001fffffef80000001500000000000000fc09260003138d000100000000000000000000000000000000000000000000000000000000fffffef7000000000000000000000000fffffeeb0000019d0000017800000e57ffff01ecffd7ffffff36000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200d60000d51e 2024-02-18 17:04:26.499 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #1/10 2024-02-18 17:04:26.799 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211041b0000000000000000000000000000000000000000000000000000000000000000000000000925000c138dffffff0400000000000000000000000000000000000000000001fffffef80000001500000000000000fc09260003138d000100000000000000000000000000000000000000000000000000000000fffffef9000000000000000000000000fffffeee0000019d0000017800000e57ffff01ecffd7ffffff36000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200d600007a60 2024-02-18 17:04:26.804 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:26.894 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:26.898 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:27.032 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001000700000000000701870000000000000708138e000000000000000000000007000000000000000000000007000000000000000000000000000001870000000000000000000000000000000000040005c30a 2024-02-18 17:04:27.034 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.872 seconds (success: True) 2024-02-18 17:04:28.445 DEBUG (MainThread) [custom_components.goodwe.select] Settin operation mode to eco_charge, power 87, max SoC 77 2024-02-18 17:04:28.452 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:04:28.505 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173b5500fc9a004d0fff2ecc 2024-02-18 17:04:28.507 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547387709504] eco_mode_1: power value -870 out of range. Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 240, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2279, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2316, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 892, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 962, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/select/init.py", line 195, in async_handle_select_option await self.async_select_option(option) File "/config/custom_components/goodwe/select.py", line 136, in async_select_option await self._inverter.set_operation_mode( File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 645, in set_operation_mode await self._read_setting(eco_mode) File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 558, in _read_setting return setting.read_value(response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/sensor.py", line 597, in readvalue raise ValueError(f"{self.id}: power value {self.power} out of range.") ValueError: eco_mode_1: power value -870 out of range. 2024-02-18 17:04:32.163 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:33.165 DEBUG (MainThread) [goodwe.protocol] Failed to receive response to READ 125 registers from 35100 (f703891c007d7ae7) in time (1s). 2024-02-18 17:04:33.165 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #1/10 2024-02-18 17:04:34.166 DEBUG (MainThread) [goodwe.protocol] Failed to receive response to READ 125 registers from 35100 (f703891c007d7ae7) in time (1s). 2024-02-18 17:04:34.167 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #2/10 2024-02-18 17:04:35.169 DEBUG (MainThread) [goodwe.protocol] Failed to receive response to READ 125 registers from 35100 (f703891c007d7ae7) in time (1s). 2024-02-18 17:04:35.170 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #3/10 2024-02-18 17:04:35.510 DEBUG (MainThread) [goodwe.modbus] Response has unexpected length: 66, expected 250. 2024-02-18 17:04:35.510 DEBUG (MainThread) [goodwe.protocol] Received invalid response: aa55f7034200790e920000353336303053504e3233325730303035475736303030455332300006000619ce0008016a30343034382d30362d53303630323032302d30382d533031a121aa55f703fa1802121104230000000000000000000000000000000000000000000000000000000000000000000000000925000c138ffffffefd00000000000000000000000000000000000000000001fffffefb00000002000000060000010309260003138f000100000000000000000000000000000000000000000000000000000000fffffefd000000000000000000000000fffffefb0000019d0000017800000e5affff01ecffd9ffffff40000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200c20000bc96 2024-02-18 17:04:35.511 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #4/10 2024-02-18 17:04:35.813 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa1802121104240000000000000000000000000000000000000000000000000000000000000000000000000925000c138ffffffefd00000000000000000000000000000000000000000001fffffefb00000002000000060000010309260003138f000100000000000000000000000000000000000000000000000000000000fffffefb000000000000000000000000fffffef90000019d0000017800000e5affff01ecffd9ffffff40000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200c20000ad78 2024-02-18 17:04:35.818 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:35.908 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:35.912 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:36.048 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a0000000100070000000000070194000000000000fed4138f0000000000000000000000070000000000000000000000070000000000000000000000000000019400000000000000000000000000000000000400053464 2024-02-18 17:04:36.066 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 3.903 seconds (success: True) 2024-02-18 17:04:41.163 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:41.495 DEBUG (MainThread) [goodwe.modbus] Response has unexpected length: 30, expected 250. 2024-02-18 17:04:41.495 DEBUG (MainThread) [goodwe.protocol] Received invalid response: aa55f7031e00ff006a000100da004a004a0000000e0064000100000022000000000000e7c9aa55f703fa1802121104290000000000000000000000000000000000000000000000000000000000000000000000000929000e138bfffffec600000000000000000000000000000000000000000001fffffec3fffffff1fffffffa0000013a092a0003138b000100000000000000000000000000000000000000000000000000000000fffffed5000000000000000000000000fffffed20000019d0000017800000e5affff01ecffcfffffff0e000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200ed000020c6 2024-02-18 17:04:41.496 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #1/10 2024-02-18 17:04:41.796 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211042a0000000000000000000000000000000000000000000000000000000000000000000000000929000e138bfffffec600000000000000000000000000000000000000000001fffffec3fffffff1fffffffa0000013a092a0003138b000100000000000000000000000000000000000000000000000000000000fffffece000000000000000000000000fffffecc0000019d0000017800000e5affff01ecffcfffffff0e000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200ed00000d35 2024-02-18 17:04:41.800 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:41.890 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:41.894 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:42.030 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001fff700000000fff70188000000000000f380138d0000000000000000fffffff70000000000000000fffffff70000000000000000000000000000018800000000000000000000000000000000000400056d2e 2024-02-18 17:04:42.032 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.870 seconds (success: True) 2024-02-18 17:04:47.163 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:48.167 DEBUG (MainThread) [goodwe.protocol] Failed to receive response to READ 125 registers from 35100 (f703891c007d7ae7) in time (1s). 2024-02-18 17:04:48.168 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #1/10 2024-02-18 17:04:49.171 DEBUG (MainThread) [goodwe.protocol] Failed to receive response to READ 125 registers from 35100 (f703891c007d7ae7) in time (1s). 2024-02-18 17:04:49.171 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #2/10 2024-02-18 17:04:49.493 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa1802121104310000000000000000000000000000000000000000000000000000000000000000000000000929000b138dffffff0600000000000000000000000000000000000000000001ffffff07fffffffd00000001000000fa092a0003138d000100000000000000000000000000000000000000000000000000000000ffffff07000000000000000000000000ffffff090000019d0000017800000e5affff01ecffdbffffff4a000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200b50000f07f 2024-02-18 17:04:49.496 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:49.586 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:49.590 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:50.591 DEBUG (MainThread) [goodwe.protocol] Failed to receive response to READ 45 registers from 36000 (f7038ca0002dbbf3) in time (1s). 2024-02-18 17:04:50.592 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) - retry #1/10 2024-02-18 17:04:50.598 DEBUG (MainThread) [goodwe.modbus] Response has unexpected length: 66, expected 90. 2024-02-18 17:04:50.598 DEBUG (MainThread) [goodwe.protocol] Received invalid response: aa55f7034200790e920000353336303053504e3233325730303035475736303030455332300006000619ce0008016a30343034382d30362d53303630323032302d30382d533031a121 2024-02-18 17:04:50.599 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) - retry #2/10 2024-02-18 17:04:50.828 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a000000010006000000000006019a00000000000006a4138d0000000000000000000000060000000000000000000000060000000000000000000000000000019a00000000000000000000000000000000000400054535aa55f7035a0002005e000a000000010006000000000006019a00000000000006a4138d0000000000000000000000060000000000000000000000060000000000000000000000000000019a00000000000000000000000000000000000400054535 2024-02-18 17:04:50.831 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 3.668 seconds (success: True)

craigcurtin-dev commented 7 months ago

Guys,

This may be relevant (or not !) – but I remember when setting up my older GoodWe units that you could not set an ECO mode (that was through the old AA55 protocol) until you had a valid timerange set.

So I set a time of 00:00 to 23:59 as timeslot 1 and then it was fine after that.

It may be worth trying this (which is what I believe SolarGo forces before you can save any changes)

Craig

From: nbalcaen @.> Sent: Tuesday, February 20, 2024 6:00 AM To: mletenay/home-assistant-goodwe-inverter @.> Cc: Craig Curtin @.>; Mention @.> Subject: Re: [mletenay/home-assistant-goodwe-inverter] ECO Charge/Discharge not available (Issue #249)

the logs of these events:

2024-02-18 17:03:09.864 DEBUG (MainThread) [goodwe] Connecting to ET family inverter at IP_ADDRESS. 2024-02-18 17:03:09.865 DEBUG (MainThread) [goodwe.inverter] Creating lock instance for current event loop. 2024-02-18 17:03:12.572 DEBUG (MainThread) [goodwe.protocol] Sending: READ 33 registers from 35000 (f70388b800213ac1) 2024-02-18 17:03:15.250 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7034200790e920000353336303053504e3233325730303035475736303030455332300006000619ce0008016a30343034382d30362d53303630323032302d30382d533031a121 2024-02-18 17:03:15.888 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:03:16.487 WARNING (MainThread) [homeassistant.components.sensor] Platform rest not ready yet; Retrying in background in 30 seconds 2024-02-18 17:03:16.489 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173bf97ffed400320ffff212 2024-02-18 17:03:16.635 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47589 (f703b9e50006e5f5) 2024-02-18 17:03:17.910 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c00000000037f0000000000002be4 2024-02-18 17:03:18.474 DEBUG (MainThread) [goodwe] Connected to inverter GW6000ES20, S/N:myserialnumber. 2024-02-18 17:03:18.539 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:03:19.193 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa180212110313000000000000000000000000000000000000000000000000000000000000000000000000092500341391fffffb5200000000000000000000000000000000000000000001fffffb50fffffc4900000000000004ae092600031391000100000000000000000000000000000000000000000000000000000000ffffff08000000000000000000000000ffffff070000019c0000017600000e58ffff01edff24fffffbbb000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000204510000c8dd 2024-02-18 17:03:19.315 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:03:19.441 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:03:19.464 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:03:19.710 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001fc4900000000fc49018f000000000000996813900000000000000000fffffc490000000000000000fffffc490000000000000000000000000000018f0000000000000000000000000000000000040005e4fb 2024-02-18 17:03:19.774 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 1.299 seconds (success: True) 2024-02-18 17:03:22.874 DEBUG (MainThread) [goodwe.protocol] Sending: READ 3 registers from 45200 (f703b090000337b0) 2024-02-18 17:03:23.029 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70306180212110317614a 2024-02-18 17:03:23.043 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47510 (f703b996000155ec) 2024-02-18 17:03:23.092 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030227106a6d 2024-02-18 17:03:23.119 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47000 (f703b798000136c7) 2024-02-18 17:03:23.160 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703020005b052 2024-02-18 17:03:23.164 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47596 (f703b9ec00017435) 2024-02-18 17:03:23.207 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-18 17:03:23.210 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 45356 (f703b12c00017669) 2024-02-18 17:03:23.262 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70302000af056 2024-02-18 17:03:23.266 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:03:23.323 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173bf97ffed400320ffff212 2024-02-18 17:03:23.327 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:03:23.397 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173bf97ffed400320ffff212 2024-02-18 17:03:23.421 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:03:23.473 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173bf97ffed400320ffff212 2024-02-18 17:03:28.164 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:03:28.464 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211031c00000000000000000000000000000000000000000000000000000000000000000000000009260034138ffffffb5200000000000000000000000000000000000000000001fffffb50fffffc53fffffffc000004ae09270003138f000100000000000000000000000000000000000000000000000000000000fffffefd000000000000000000000000fffffefb0000019c0000017600000e5affff01edff24fffffbbb000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e000000000001000000000000000000000000010400020450000014ea 2024-02-18 17:03:28.469 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:03:28.560 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:03:28.568 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:03:28.701 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001fc5400000000fc54018b000000000000996813900000000000000000fffffc540000000000000000fffffc540000000000000000000000000000018b0000000000000000000000000000000000040005c61f 2024-02-18 17:03:28.702 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.539 seconds (success: True) 2024-02-18 17:03:50.163 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:03:50.463 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211033200000000000000000000000000000000000000000000000000000000000000000000000009380033138dfffffb5100000000000000000000000000000000000000000001fffffb4effffff1000000000000004af09390003138d000100000000000000000000000000000000000000000000000000000000fffffc3a000000000000000000000000fffffc370000019c0000017700000e6effff01edff24fffffbbb000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e000000000001000000000000000000000000010400020450000094cf 2024-02-18 17:03:50.466 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:03:50.556 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:03:50.559 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:03:50.693 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001ff0100000000ff0101bc0000000000005100138e0000000000000000ffffff010000000000000000ffffff01000000000000000000000000000001bc00000000000000000000000000000000000400059bdb 2024-02-18 17:03:50.694 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.532 seconds (success: True) 2024-02-18 17:03:55.208 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:03:55.510 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa180212110337000000000000000000000000000000000000000000000000000000000000000000000000092c0034138dfffffb5200000000000000000000000000000000000000000001fffffb50fffffd7200000008000004ae092d0003138d000100000000000000000000000000000000000000000000000000000000fffffe1e000000000000000000000000fffffe1d0000019c0000017700000e65ffff01edff24fffffbbb000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000204510000b6a6 2024-02-18 17:03:55.514 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:03:55.604 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:03:55.607 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:03:55.660 DEBUG (MainThread) [custom_components.goodwe.select] Setting eco mode SoC to 19 2024-02-18 17:03:55.666 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/goodwe/select.py", line 174, in update_eco_mode_soc await self._inverter.set_operation_mode( File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 641, in set_operation_mode raise ValueError() ValueError 2024-02-18 17:03:55.740 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001fd0e00000000fd0e014f000000000000a070138e0000000000000000fffffd0e0000000000000000fffffd0e0000000000000000000000000000014f000000000000000000000000000000000004000586e4 2024-02-18 17:03:55.742 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.560 seconds (success: True) 2024-02-18 17:03:57.006 DEBUG (MainThread) [custom_components.goodwe.select] Setting eco mode power to 53 2024-02-18 17:03:57.012 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:03:57.071 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173bf97ffed400320ffff212 2024-02-18 17:03:57.076 DEBUG (MainThread) [goodwe.protocol] Sending: f710b9bb00060c0000173bf97ffdee00130fffff64 2024-02-18 17:03:57.133 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9bb000601e4 2024-02-18 17:03:57.136 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47555 (f703b9c3000145fc) 2024-02-18 17:03:57.178 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70302f97f73e1 2024-02-18 17:03:57.181 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 127 to register 47555 (f706b9c3007f09dc) 2024-02-18 17:03:57.223 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9c3007f09dc 2024-02-18 17:03:57.226 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47561 (f703b9c9000165fe) 2024-02-18 17:03:57.266 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030255004f01 2024-02-18 17:03:57.270 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47561 (f706b9c90000683e) 2024-02-18 17:03:57.322 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9c90000683e 2024-02-18 17:03:57.325 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47567 (f703b9cf000185ff) 2024-02-18 17:03:57.365 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030255004f01 2024-02-18 17:03:57.367 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47567 (f706b9cf0000883f) 2024-02-18 17:03:57.409 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9cf0000883f 2024-02-18 17:03:57.412 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 3 to register 47000 (f706b79800037b06) 2024-02-18 17:03:57.458 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b79800037b06 2024-02-18 17:03:57.461 DEBUG (MainThread) [goodwe.protocol] Sending: f710b99700020400010000a8f9 2024-02-18 17:03:57.507 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9970002c1ee 2024-02-18 17:03:59.336 DEBUG (MainThread) [custom_components.goodwe.select] Setting eco mode power to 87 2024-02-18 17:03:59.340 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:03:59.392 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173bf97ffdee00130fff7a2e 2024-02-18 17:03:59.395 DEBUG (MainThread) [goodwe.protocol] Sending: f710b9bb00060c0000173bf97ffc9a00130fff4ebe 2024-02-18 17:03:59.450 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9bb000601e4 2024-02-18 17:03:59.453 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47555 (f703b9c3000145fc) 2024-02-18 17:03:59.495 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70302007f31b1 2024-02-18 17:03:59.498 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 127 to register 47555 (f706b9c3007f09dc) 2024-02-18 17:03:59.540 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9c3007f09dc 2024-02-18 17:03:59.542 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47561 (f703b9c9000165fe) 2024-02-18 17:03:59.585 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-18 17:03:59.590 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47561 (f706b9c90000683e) 2024-02-18 17:03:59.633 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9c90000683e 2024-02-18 17:03:59.636 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47567 (f703b9cf000185ff) 2024-02-18 17:03:59.676 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-18 17:03:59.680 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47567 (f706b9cf0000883f) 2024-02-18 17:03:59.722 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9cf0000883f 2024-02-18 17:03:59.725 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 3 to register 47000 (f706b79800037b06) 2024-02-18 17:03:59.768 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b79800037b06 2024-02-18 17:03:59.771 DEBUG (MainThread) [goodwe.protocol] Sending: f710b99700020400010000a8f9 2024-02-18 17:03:59.820 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9970002c1ee 2024-02-18 17:04:00.164 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:00.465 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211040000000000000000000000000000000000000000000000000000000000000000000000000009240059138dfffff7d600000000000000000000000000000000000000000001fffff3dffffff8f4ffffffe90000082a09240003138d00010000000000000000000000000000000000000000000000000000000000000215000000000000000000000000fffffe1f0000019c0000017700000e3effff01edfd84fffff53f000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e000000000001000000000000000000000000010400020c8200006031 2024-02-18 17:04:00.470 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:00.559 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:00.563 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:00.627 DEBUG (MainThread) [custom_components.goodwe.select] Setting eco mode SoC to 77 2024-02-18 17:04:00.697 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001f3f700000000f3f701680000000000008324138e0000000000000000fffff3f70000000000000000fffff3f7000000000000000000000000000001680000000000000000000000000000000000040005c698 2024-02-18 17:04:00.699 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.536 seconds (success: True) 2024-02-18 17:04:00.724 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:04:00.776 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173bf97ffc9a00130fffcbf4 2024-02-18 17:04:00.781 DEBUG (MainThread) [goodwe.protocol] Sending: f710b9bb00060c0000173bf97ffc9a004d0fff2f6c 2024-02-18 17:04:00.837 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9bb000601e4 2024-02-18 17:04:00.840 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47555 (f703b9c3000145fc) 2024-02-18 17:04:00.881 DEBUG (MainThread) [goodwe.protocol] Received: aa55f70302007f31b1 2024-02-18 17:04:00.884 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 127 to register 47555 (f706b9c3007f09dc) 2024-02-18 17:04:00.926 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9c3007f09dc 2024-02-18 17:04:00.930 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47561 (f703b9c9000165fe) 2024-02-18 17:04:00.971 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-18 17:04:00.975 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47561 (f706b9c90000683e) 2024-02-18 17:04:01.016 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9c90000683e 2024-02-18 17:04:01.020 DEBUG (MainThread) [goodwe.protocol] Sending: READ register 47567 (f703b9cf000185ff) 2024-02-18 17:04:01.063 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030200007051 2024-02-18 17:04:01.066 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47567 (f706b9cf0000883f) 2024-02-18 17:04:01.108 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9cf0000883f 2024-02-18 17:04:01.111 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 3 to register 47000 (f706b79800037b06) 2024-02-18 17:04:01.153 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b79800037b06 2024-02-18 17:04:01.155 DEBUG (MainThread) [goodwe.protocol] Sending: f710b99700020400010000a8f9 2024-02-18 17:04:01.202 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9970002c1ee 2024-02-18 17:04:05.165 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:05.466 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211040500000000000000000000000000000000000000000000000000000000000000000000000009090092138bfffff2be00000000000000000000000000000000000000000001fffff2b7fffff3d1ffffffe600000d4209080003138b000100000000000000000000000000000000000000000000000000000000fffffef3000000000000000000000000fffffeed0000019d0000017700000e20ffff01f1fd86fffff385000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e000000000001000000000000000000000000010400020c820000924e 2024-02-18 17:04:05.470 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:05.559 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:05.562 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:05.694 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001f3c700000000f3c701680000000000007bb8138d0000000000000000fffff3c70000000000000000fffff3c700000000000000000000000000000168000000000000000000000000000000000004000533e7 2024-02-18 17:04:05.696 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.533 seconds (success: True) 2024-02-18 17:04:10.164 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:10.465 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211040a00000000000000000000000000000000000000000000000000000000000000000000000009010092138efffff2c300000000000000000000000000000000000000000001fffff2bdfffff3d20000001600000d3d09000003138e000100000000000000000000000000000000000000000000000000000000fffffef4000000000000000000000000fffffeee0000019d0000017700000e29ffff01f1fd86fffff380000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e000000000001000000000000000000000000010400020c8200008a39 2024-02-18 17:04:10.468 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:10.558 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:10.561 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:10.695 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001f3cc00000000f3cc016c0000000000007bb8138d0000000000000000fffff3cc0000000000000000fffff3cc0000000000000000000000000000016c00000000000000000000000000000000000400054be1 2024-02-18 17:04:10.696 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.534 seconds (success: True) 2024-02-18 17:04:11.346 DEBUG (MainThread) [custom_components.goodwe.select] Settin operation mode to general, power 87, max SoC 77 2024-02-18 17:04:11.351 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47000 (f706b79800003b07) 2024-02-18 17:04:11.394 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b79800003b07 2024-02-18 17:04:11.396 DEBUG (MainThread) [goodwe.protocol] Sending: f710b99700020400010000a8f9 2024-02-18 17:04:11.446 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9970002c1ee 2024-02-18 17:04:11.449 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 1 to register 47533 (f706b9ad0001e821) 2024-02-18 17:04:11.499 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9ad0001e821 2024-02-18 17:04:15.163 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:15.464 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211040f000000000000000000000000000000000000000000000000000000000000000000000000091e000c138dfffffef000000000000000000000000000000000000000000001fffffef2ffffffef0000000400000112091f0003138d000100000000000000000000000000000000000000000000000000000000fffffefe000000000000000000000000ffffff000000019d0000017700000e4bffff01f1ffd7ffffff35000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200710000242d 2024-02-18 17:04:15.468 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:15.558 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e0064000100000022000000000000000000000000000000000000000000000000298f 2024-02-18 17:04:15.561 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:15.694 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001002800000000002801a2000000000000f1f0138e000000000000000000000028000000000000000000000028000000000000000000000000000001a20000000000000000000000000000000000040005a863 2024-02-18 17:04:15.696 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.534 seconds (success: True) 2024-02-18 17:04:20.163 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:20.505 DEBUG (MainThread) [goodwe.modbus] Response has unexpected length: 66, expected 250. 2024-02-18 17:04:20.505 DEBUG (MainThread) [goodwe.protocol] Received invalid response: aa55f7034200790e920000353336303053504e3233325730303035475736303030455332300006000619ce0008016a30343034382d30362d53303630323032302d30382d533031a121aa55f703fa1802121104140000000000000000000000000000000000000000000000000000000000000000000000000927000a138cffffff2500000000000000000000000000000000000000000001ffffff290000002d00000003000000db09280003138c000100000000000000000000000000000000000000000000000000000000fffffef4000000000000000000000000fffffef90000019d0000017700000e54ffff01edffe1ffffff67000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e00000000000100000000000000000000000001040002009b0000e0f2 2024-02-18 17:04:20.505 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #1https://github.com/mletenay/home-assistant-goodwe-inverter/issues/1/10 2024-02-18 17:04:20.806 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa1802121104150000000000000000000000000000000000000000000000000000000000000000000000000927000a138cffffff2500000000000000000000000000000000000000000001ffffff290000002d00000003000000db09280003138c000100000000000000000000000000000000000000000000000000000000fffffef5000000000000000000000000fffffefa0000019d0000017700000e54ffff01edffe1ffffff67000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e00000000000100000000000000000000000001040002009b0000c535 2024-02-18 17:04:20.810 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:20.899 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:20.902 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:21.038 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001002a00000000002a01930000000000002af8138d00000000000000000000002a00000000000000000000002a000000000000000000000000000001930000000000000000000000000000000000040005dbb8 2024-02-18 17:04:21.040 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.878 seconds (success: True) 2024-02-18 17:04:26.163 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:26.499 DEBUG (MainThread) [goodwe.modbus] Response has unexpected length: 66, expected 250. 2024-02-18 17:04:26.499 DEBUG (MainThread) [goodwe.protocol] Received invalid response: aa55f7034200790e920000353336303053504e3233325730303035475736303030455332300006000619ce0008016a30343034382d30362d53303630323032302d30382d533031a121aa55f703fa18021211041a0000000000000000000000000000000000000000000000000000000000000000000000000925000c138dffffff0400000000000000000000000000000000000000000001fffffef80000001500000000000000fc09260003138d000100000000000000000000000000000000000000000000000000000000fffffef7000000000000000000000000fffffeeb0000019d0000017800000e57ffff01ecffd7ffffff36000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200d60000d51e 2024-02-18 17:04:26.499 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #1https://github.com/mletenay/home-assistant-goodwe-inverter/issues/1/10 2024-02-18 17:04:26.799 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211041b0000000000000000000000000000000000000000000000000000000000000000000000000925000c138dffffff0400000000000000000000000000000000000000000001fffffef80000001500000000000000fc09260003138d000100000000000000000000000000000000000000000000000000000000fffffef9000000000000000000000000fffffeee0000019d0000017800000e57ffff01ecffd7ffffff36000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200d600007a60 2024-02-18 17:04:26.804 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:26.894 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:26.898 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:27.032 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001000700000000000701870000000000000708138e000000000000000000000007000000000000000000000007000000000000000000000000000001870000000000000000000000000000000000040005c30a 2024-02-18 17:04:27.034 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.872 seconds (success: True) 2024-02-18 17:04:28.445 DEBUG (MainThread) [custom_components.goodwe.select] Settin operation mode to eco_charge, power 87, max SoC 77 2024-02-18 17:04:28.452 DEBUG (MainThread) [goodwe.protocol] Sending: READ 6 registers from 47547 (f703b9bb00068427) 2024-02-18 17:04:28.505 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7030c0000173b5500fc9a004d0fff2ecc 2024-02-18 17:04:28.507 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547387709504] eco_mode_1: power value -870 out of range. Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 240, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2279, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2316, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 892, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 962, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/select/init.py", line 195, in async_handle_select_option await self.async_select_option(option) File "/config/custom_components/goodwe/select.py", line 136, in async_select_option await self._inverter.set_operation_mode( File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 645, in set_operation_mode await self._read_setting(eco_mode) File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 558, in read_setting return setting.read_value(response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/sensor.py", line 597, in read_value raise ValueError(f"{self.id}: power value {self.power} out of range.") ValueError: eco_mode_1: power value -870 out of range. 2024-02-18 17:04:32.163 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:33.165 DEBUG (MainThread) [goodwe.protocol] Failed to receive response to READ 125 registers from 35100 (f703891c007d7ae7) in time (1s). 2024-02-18 17:04:33.165 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #1https://github.com/mletenay/home-assistant-goodwe-inverter/issues/1/10 2024-02-18 17:04:34.166 DEBUG (MainThread) [goodwe.protocol] Failed to receive response to READ 125 registers from 35100 (f703891c007d7ae7) in time (1s). 2024-02-18 17:04:34.167 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #2https://github.com/mletenay/home-assistant-goodwe-inverter/issues/2/10 2024-02-18 17:04:35.169 DEBUG (MainThread) [goodwe.protocol] Failed to receive response to READ 125 registers from 35100 (f703891c007d7ae7) in time (1s). 2024-02-18 17:04:35.170 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #3https://github.com/mletenay/home-assistant-goodwe-inverter/issues/3/10 2024-02-18 17:04:35.510 DEBUG (MainThread) [goodwe.modbus] Response has unexpected length: 66, expected 250. 2024-02-18 17:04:35.510 DEBUG (MainThread) [goodwe.protocol] Received invalid response: aa55f7034200790e920000353336303053504e3233325730303035475736303030455332300006000619ce0008016a30343034382d30362d53303630323032302d30382d533031a121aa55f703fa1802121104230000000000000000000000000000000000000000000000000000000000000000000000000925000c138ffffffefd00000000000000000000000000000000000000000001fffffefb00000002000000060000010309260003138f000100000000000000000000000000000000000000000000000000000000fffffefd000000000000000000000000fffffefb0000019d0000017800000e5affff01ecffd9ffffff40000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200c20000bc96 2024-02-18 17:04:35.511 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #4https://github.com/mletenay/home-assistant-goodwe-inverter/issues/4/10 2024-02-18 17:04:35.813 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa1802121104240000000000000000000000000000000000000000000000000000000000000000000000000925000c138ffffffefd00000000000000000000000000000000000000000001fffffefb00000002000000060000010309260003138f000100000000000000000000000000000000000000000000000000000000fffffefb000000000000000000000000fffffef90000019d0000017800000e5affff01ecffd9ffffff40000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200c20000ad78 2024-02-18 17:04:35.818 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:35.908 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:35.912 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:36.048 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a0000000100070000000000070194000000000000fed4138f0000000000000000000000070000000000000000000000070000000000000000000000000000019400000000000000000000000000000000000400053464 2024-02-18 17:04:36.066 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 3.903 seconds (success: True) 2024-02-18 17:04:41.163 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:41.495 DEBUG (MainThread) [goodwe.modbus] Response has unexpected length: 30, expected 250. 2024-02-18 17:04:41.495 DEBUG (MainThread) [goodwe.protocol] Received invalid response: aa55f7031e00ff006a000100da004a004a0000000e0064000100000022000000000000e7c9aa55f703fa1802121104290000000000000000000000000000000000000000000000000000000000000000000000000929000e138bfffffec600000000000000000000000000000000000000000001fffffec3fffffff1fffffffa0000013a092a0003138b000100000000000000000000000000000000000000000000000000000000fffffed5000000000000000000000000fffffed20000019d0000017800000e5affff01ecffcfffffff0e000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200ed000020c6 2024-02-18 17:04:41.496 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #1https://github.com/mletenay/home-assistant-goodwe-inverter/issues/1/10 2024-02-18 17:04:41.796 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa18021211042a0000000000000000000000000000000000000000000000000000000000000000000000000929000e138bfffffec600000000000000000000000000000000000000000001fffffec3fffffff1fffffffa0000013a092a0003138b000100000000000000000000000000000000000000000000000000000000fffffece000000000000000000000000fffffecc0000019d0000017800000e5affff01ecffcfffffff0e000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200ed00000d35 2024-02-18 17:04:41.800 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:41.890 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:41.894 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:42.030 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a00000001fff700000000fff70188000000000000f380138d0000000000000000fffffff70000000000000000fffffff70000000000000000000000000000018800000000000000000000000000000000000400056d2e 2024-02-18 17:04:42.032 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.870 seconds (success: True) 2024-02-18 17:04:47.163 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) 2024-02-18 17:04:48.167 DEBUG (MainThread) [goodwe.protocol] Failed to receive response to READ 125 registers from 35100 (f703891c007d7ae7) in time (1s). 2024-02-18 17:04:48.168 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #1https://github.com/mletenay/home-assistant-goodwe-inverter/issues/1/10 2024-02-18 17:04:49.171 DEBUG (MainThread) [goodwe.protocol] Failed to receive response to READ 125 registers from 35100 (f703891c007d7ae7) in time (1s). 2024-02-18 17:04:49.171 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (f703891c007d7ae7) - retry #2https://github.com/mletenay/home-assistant-goodwe-inverter/issues/2/10 2024-02-18 17:04:49.493 DEBUG (MainThread) [goodwe.protocol] Received: aa55f703fa1802121104310000000000000000000000000000000000000000000000000000000000000000000000000929000b138dffffff0600000000000000000000000000000000000000000001ffffff07fffffffd00000001000000fa092a0003138d000100000000000000000000000000000000000000000000000000000000ffffff07000000000000000000000000ffffff090000019d0000017800000e5affff01ecffdbffffff4a000300000006000102000000000000000000000000000000013500000115001c000001bc000d00000531005e0000014a00080000015e001e0000000000010000000000000000000000000104000200b50000f07f 2024-02-18 17:04:49.496 DEBUG (MainThread) [goodwe.protocol] Sending: READ 24 registers from 37000 (f70390880018fc7c) 2024-02-18 17:04:49.586 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7033000ff006a000100da004a004a0000000e00640001000000220000000700000000000000000000000000000000000000005f38 2024-02-18 17:04:49.590 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) 2024-02-18 17:04:50.591 DEBUG (MainThread) [goodwe.protocol] Failed to receive response to READ 45 registers from 36000 (f7038ca0002dbbf3) in time (1s). 2024-02-18 17:04:50.592 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) - retry #1https://github.com/mletenay/home-assistant-goodwe-inverter/issues/1/10 2024-02-18 17:04:50.598 DEBUG (MainThread) [goodwe.modbus] Response has unexpected length: 66, expected 90. 2024-02-18 17:04:50.598 DEBUG (MainThread) [goodwe.protocol] Received invalid response: aa55f7034200790e920000353336303053504e3233325730303035475736303030455332300006000619ce0008016a30343034382d30362d53303630323032302d30382d533031a121 2024-02-18 17:04:50.599 DEBUG (MainThread) [goodwe.protocol] Sending: READ 45 registers from 36000 (f7038ca0002dbbf3) - retry #2https://github.com/mletenay/home-assistant-goodwe-inverter/issues/2/10 2024-02-18 17:04:50.828 DEBUG (MainThread) [goodwe.protocol] Received: aa55f7035a0002005e000a000000010006000000000006019a00000000000006a4138d0000000000000000000000060000000000000000000000060000000000000000000000000000019a00000000000000000000000000000000000400054535aa55f7035a0002005e000a000000010006000000000006019a00000000000006a4138d0000000000000000000000060000000000000000000000060000000000000000000000000000019a00000000000000000000000000000000000400054535 2024-02-18 17:04:50.831 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 3.668 seconds (success: True)

— Reply to this email directly, view it on GitHubhttps://github.com/mletenay/home-assistant-goodwe-inverter/issues/249#issuecomment-1953027958, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM6OST3BNSPJ43P5PZFCQ2DYUOOJLAVCNFSM6AAAAABC7NH4P2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJTGAZDOOJVHA. You are receiving this because you were mentioned.Message ID: @.**@.>>

Brumhilde commented 7 months ago

I have configured 2 eco modes using solargo. Both have all days and all months selected and valid time range.

I get the following in my log:

2024-02-20 09:57:32.870 DEBUG (MainThread) [custom_components.goodwe.select] Could not read inverter operation mode Traceback (most recent call last): File "/config/custom_components/goodwe/select.py", line 59, in async_setup_entry active_mode = await inverter.get_operation_mode() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 610, in get_operation_mode ecomode = await self.read_setting('eco_mode_1') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 553, in read_setting return await self._read_setting(setting) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 558, in _read_setting return setting.read_value(response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/sensor.py", line 594, in readvalue raise ValueError(f"{self.id}: day_bits value {self.day_bits} out of range.") ValueError: eco_mode_1: day_bits value -2 out of range.

2024-02-20 09:57:32.924 DEBUG (MainThread) [custom_components.goodwe.number] Could not read inverter setting eco_mode_power

2024-02-20 09:57:32.975 DEBUG (MainThread) [custom_components.goodwe.number] Could not read inverter setting eco_mode_soc

GW15K-ET, HA Core 2024.2.2, Goodwe 0.9.9.16

EDIT: Rechecked and turned out Sunday was not selected. Changed to all days and all months and these errors are gone.

Brumhilde commented 7 months ago

After a restart I got this again:

2024-02-20 10:58:56.887 DEBUG (MainThread) [custom_components.goodwe.select] Could not read inverter operation mode Traceback (most recent call last): File "/config/custom_components/goodwe/select.py", line 59, in async_setup_entry active_mode = await inverter.get_operation_mode() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 610, in get_operation_mode ecomode = await self.read_setting('eco_mode_1') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 553, in read_setting return await self._read_setting(setting) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 558, in _read_setting return setting.read_value(response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/sensor.py", line 597, in readvalue raise ValueError(f"{self.id}: power value {self.power} out of range.") ValueError: eco_mode_1: power value -200 out of range.

The above error was due to the integration had deleted my time/working groups. This seem to happen when I select "General mode" in the integration. Confirmed that selecting "General mode" deletes time/working groups and integration does not start properly without time/working groups.

2024-02-20 11:28:09.785 DEBUG (MainThread) [custom_components.goodwe.select] Settin operation mode to general, power 200, max SoC 90 2024-02-20 11:28:09.785 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47000 (f706b79800003b07) 2024-02-20 11:28:10.788 DEBUG (MainThread) [goodwe.protocol] Failed to receive response to WRITE 0 to register 47000 (f706b79800003b07) in time (1s). 2024-02-20 11:28:10.788 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 0 to register 47000 (f706b79800003b07) - retry #1/10 2024-02-20 11:28:10.830 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b79800003b07 2024-02-20 11:28:10.830 DEBUG (MainThread) [goodwe.protocol] Sending: f710b99700020400010000a8f9 2024-02-20 11:28:10.936 DEBUG (MainThread) [goodwe.modbus] Response has unexpected length: 54, expected 4. 2024-02-20 11:28:10.936 DEBUG (MainThread) [goodwe.protocol] Received invalid response: aa55f7033600020036000a00000001f93900ff0131fb6a03d68f40dde00c5c593413850000000000000000fffff939000000ff00000131fffffb6adbafaa55f710b9970002c1ee 2024-02-20 11:28:10.936 DEBUG (MainThread) [goodwe.protocol] Sending: f710b99700020400010000a8f9 - retry #1/10 2024-02-20 11:28:10.983 DEBUG (MainThread) [goodwe.protocol] Received: aa55f710b9970002c1ee 2024-02-20 11:28:10.983 DEBUG (MainThread) [goodwe.protocol] Sending: WRITE 1 to register 47533 (f706b9ad0001e821) 2024-02-20 11:28:11.035 DEBUG (MainThread) [goodwe.protocol] Received: aa55f706b9ad0001e821

These are the errors I get when selecting charge/discharge modes:

2024-02-20 11:17:37.860 DEBUG (MainThread) [custom_components.goodwe.select] Settin operation mode to eco_charge, power 200, max SoC 90 2024-02-20 11:17:37.860 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140495691466048] Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 240, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2279, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2316, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 892, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 962, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/select/init.py", line 195, in async_handle_select_option await self.async_select_option(option) File "/config/custom_components/goodwe/select.py", line 136, in async_select_option await self._inverter.set_operation_mode( File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 641, in set_operation_mode raise ValueError() ValueError

2024-02-20 11:20:13.530 DEBUG (MainThread) [custom_components.goodwe.select] Settin operation mode to eco_discharge, power 200, max SoC 90 2024-02-20 11:20:13.530 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140495691466048] Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 240, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2279, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2316, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 892, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 962, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/select/init.py", line 195, in async_handle_select_option await self.async_select_option(option) File "/config/custom_components/goodwe/select.py", line 136, in async_select_option await self._inverter.set_operation_mode( File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 641, in set_operation_mode raise ValueError() ValueError

Summary of the problems I have found with GW15K-ET:

  1. Selecting General mode deletes time/working groups and integration cannot start without time/working groups.
  2. Selecting Eco charge or discharge modes sets power to 0-1000 but the library expects 0-100. Note that this only applies if power is unchanged in HA. Power value read from inverter is 0-1000 but if I set power using the slide in HA it is set correctly for the lib 0-100.
craigcurtin-dev commented 7 months ago

That appears that you have gotten further – I assume that is with a single timeslot set as I suggested ?

It looks to me like the values (are as Mletenay has said) different now in terms of supporting negative values (which I assume would mean discharge the battery)

Can you set it to a positive charge rate (or do it when the house is being powered by solar – so the rate will be positive) and see what is returned then

This might give the author some more to go on and definite confirmation that the registers have been updated to support negatives – out of interest do you set a negative rate in SolarGo or just charge/discharge and then the value ?

Craig

From: Brumhilde @.> Sent: Tuesday, February 20, 2024 9:02 PM To: mletenay/home-assistant-goodwe-inverter @.> Cc: Craig Curtin @.>; Mention @.> Subject: Re: [mletenay/home-assistant-goodwe-inverter] ECO Charge/Discharge not available (Issue #249)

After a restart I got this again:

2024-02-20 10:58:56.887 DEBUG (MainThread) [custom_components.goodwe.select] Could not read inverter operation mode Traceback (most recent call last): File "/config/custom_components/goodwe/select.py", line 59, in async_setup_entry active_mode = await inverter.get_operation_mode() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 610, in get_operation_mode ecomode = await self.read_setting('eco_mode_1') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 553, in read_setting return await self._read_setting(setting) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/et.py", line 558, in read_setting return setting.read_value(response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/goodwe/sensor.py", line 597, in read_value raise ValueError(f"{self.id}: power value {self.power} out of range.") ValueError: eco_mode_1: power value -200 out of range.

— Reply to this email directly, view it on GitHubhttps://github.com/mletenay/home-assistant-goodwe-inverter/issues/249#issuecomment-1953862852, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM6OST4ZE7ON5SI7IKBGK33YURYBVAVCNFSM6AAAAABC7NH4P2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJTHA3DEOBVGI. You are receiving this because you were mentioned.Message ID: @.**@.>>

Brumhilde commented 7 months ago

@craigcurtin-dev It works with both one or two time groups. I set charge/discharge in SolarGo and then positive value 0-100% power.

Oooklart commented 7 months ago

Hi, I have the same issue with my GW15K-ET the modes won’t show up IMG_2815 IMG_2816

Brumhilde commented 7 months ago

I have it working with GW15K-ET in my environment but there are some issues before it can be merged. Changes are done in the lib and not the integration.

  1. We need a deterministic way to determine if the inverter is new 745 platform or not. Could be that easy that 10K and below (ETU) are old platform and 15K and above (ETT) are new 745 platform. But this need to be confirmed.
  2. We need to know if the new "Self-use mode" is for new platform only or all ET inverters.
Oooklart commented 7 months ago

I have it working with GW15K-ET in my environment but there are some issues before it can be merged. Changes are done in the lib and not the integration.

  1. We need a deterministic way to determine if the inverter is new 745 platform or not. Could be that easy that 10K and below (ETU) are old platform and 15K and above (ETT) are new 745 platform. But this need to be confirmed.
  2. We need to know if the new "Self-use mode" is for new platform only or all ET inverters.

Alright! Let me know if there’s anything I can do to assist you with this

Brumhilde commented 6 months ago

@nbalcaen @rthorntn Are the 3 letters in your serial number "ESN"? If not please let me know what they are.

I have a pull request that solves this issue for ETT and ESN inverters (verified with ETT inverter GW15K-ET): https://github.com/marcelblijleven/goodwe/pull/73

Before that new lib can be used this PR is needed: https://github.com/mletenay/home-assistant-goodwe-inverter/pull/255

mletenay commented 5 months ago

I did couple of fixes in v0.9.917, hoping it will help. I am closing the ticket, if the problem still persists, just re-open it.