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

Connection gets lost all the time. #292

Closed ivik closed 2 months ago

ivik commented 3 months ago

Hi

Something happened 3-4 days ago, it started to lose connection couple of times each minute. I have tried different version, all the way back to 0.9.9.25. Don't even think it has anything todo with the Goodwe code since it actually worked great for many weeks and then some HA updates come, not sure which one, either Core or Supervisor and since then I think this has started to happen.

Everything is up 2 date:

Core: 2024.6.4 Supervisor: 2024.06.2 Operating System: 12.4 Frontend: 20240610.1

Goodwe: v0.9.9.27 (same problem with .26 and .25)

Some debug info:

2024-06-28 14:05:01.448 DEBUG (MainThread) [goodwe.protocol] Opening connection. 2024-06-28 14:05:01.453 DEBUG (MainThread) [goodwe.protocol] Connection opened. 2024-06-28 14:05:01.455 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (331300000006f703891c007d) 2024-06-28 14:05:01.502 DEBUG (MainThread) [goodwe.protocol] Received: 3313000000fdf703fa18061c0e043b1525006a00001552152500000000171e165e006900000000165e0000000000000000020209610096138900000e1109670098138a00000e2409490099138a00000e44000100002a79000025d7000003c900002a8f09600003138900000000002009670003138a00000000001609480003138a00000000001c000003cf000000670000006e0000004f00000202000101d3086b01d100001e6f0f3800000000000000000000000000290001000000000000000018fe000001220000188500000094011900000006000000000cb8007b00000000000000000000000000060000000000000000000000000000020401c8000000000000

2024-06-28 14:05:01.505 DEBUG (MainThread) [goodwe.protocol] Opening connection. 2024-06-28 14:05:01.508 DEBUG (MainThread) [goodwe.protocol] Connection closed. 2024-06-28 14:05:01.511 DEBUG (MainThread) [goodwe.protocol] Connection opened. 2024-06-28 14:05:01.513 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 36000 (331400000006f7038ca0007d) 2024-06-28 14:05:01.901 DEBUG (MainThread) [goodwe.modbus] Response is command failure: UNKNOWN. 2024-06-28 14:05:01.902 DEBUG (MainThread) [goodwe.protocol] Received exception response: 33140000007bffffffffff000000000003ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000001151a00000000000226040000000000021c7400000000000508cb000000000002388300000000a729000000000000ba790000000000034b5c1806

2024-06-28 14:05:01.969 DEBUG (MainThread) [goodwe.protocol] Connection closed. 2024-06-28 14:05:11.449 DEBUG (MainThread) [goodwe.protocol] Opening connection. 2024-06-28 14:05:11.453 DEBUG (MainThread) [goodwe.protocol] Connection opened. 2024-06-28 14:05:11.455 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (331500000006f703891c007d) 2024-06-28 14:05:11.496 DEBUG (MainThread) [goodwe.protocol] Received: 3315000000fdf703fa18061c0e05091552008300001c381552000000001b2c15de00780000000015de00000000000000000202096d00bd138b000011ca097000bc138b000011cd095000c01389000011cb000100003562000030e4000005590000356f096d0002138b00000000002009750004138b000000000018095000031389000000000018000003d3000000600000004c000000530000058c000101d3086b01d200001e940f4a00000000000000000000000000290001000000000000000018ff000001230000188500000094011900000006000000000cb8007b00000000000000000000000000060000000000000000000000000000020401c8000000000000

2024-06-28 14:05:11.499 DEBUG (MainThread) [goodwe.protocol] Opening connection. 2024-06-28 14:05:11.501 DEBUG (MainThread) [goodwe.protocol] Connection closed. 2024-06-28 14:05:11.504 DEBUG (MainThread) [goodwe.protocol] Connection opened. 2024-06-28 14:05:11.506 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 36000 (331600000006f7038ca0007d) 2024-06-28 14:05:11.548 DEBUG (MainThread) [goodwe.protocol] Received: 3316000000fdf703fa00070000000a000000010dec1165117830ca00500063006300630063138a000000000000000000000dec0000116500001178000030caffffffdc0000003a000000390000005000000e050000117800001185000031030002000500000000000000000000000000000964096e094c009500b900bc0000ffffffffffffffffffffffff000000000003ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000001151f000000000002260b0000000000021c7b00000000000508dc0000000000023883000000000000a729000000000000ba790000000000034b5c1806

2024-06-28 14:05:11.551 DEBUG (MainThread) [goodwe.protocol] Opening connection. 2024-06-28 14:05:11.553 DEBUG (MainThread) [goodwe.protocol] Connection closed. 2024-06-28 14:05:11.556 DEBUG (MainThread) [goodwe.protocol] Connection opened. 2024-06-28 14:05:11.558 DEBUG (MainThread) [goodwe.protocol] Sending: READ 61 registers from 35301 (331700000006f70389e5003d) 2024-06-28 14:05:11.589 DEBUG (MainThread) [goodwe.protocol] Received: 33170000007df7037a000036ef00020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009500950095000000000ffffffff1be91b060000000000000000000000000083007e000000000000000000000000000000000000000000000000000000000000

2024-06-28 14:05:11.592 INFO (MainThread) [custom_components.goodwe.coordinator] Fetching GoodWe data recovered 2024-06-28 14:05:11.592 DEBUG (MainThread) [custom_components.goodwe.coordinator] Finished fetching GoodWe data in 0.144 seconds (success: True) 2024-06-28 14:05:11.629 DEBUG (MainThread) [goodwe.protocol] Connection closed. 2024-06-28 14:05:21.448 DEBUG (MainThread) [goodwe.protocol] Opening connection. 2024-06-28 14:05:21.453 DEBUG (MainThread) [goodwe.protocol] Connection opened. 2024-06-28 14:05:21.454 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 35100 (331800000006f703891c007d) 2024-06-28 14:05:21.495 DEBUG (MainThread) [goodwe.protocol] Received: 3318000000fdf703fa18061c0e051315f10070000017d815f100000000178b1613006f00000000161300000000000000000202096100a1138900000f2b096500a2138800000f39094700a4138800000f4b000100002daf000029450000046f00002d8809600002138900000000001e09690003138800000000001609470003138900000000001e000003bc0000005f000000510000004f00000171000101d3086b01d300001e730f3900000000000000000000000000290001000000000000000018ff000001230000188600000094011a00000006000000000cb8007b00000000000000000000000000060000000000000000000000000000020401c8000000000000

2024-06-28 14:05:21.499 DEBUG (MainThread) [goodwe.protocol] Opening connection. 2024-06-28 14:05:21.501 DEBUG (MainThread) [goodwe.protocol] Connection closed. 2024-06-28 14:05:21.511 DEBUG (MainThread) [goodwe.protocol] Connection opened. 2024-06-28 14:05:21.513 DEBUG (MainThread) [goodwe.protocol] Sending: READ 125 registers from 36000 (331900000006f7038ca0007d) 2024-06-28 14:05:21.554 DEBUG (MainThread) [goodwe.protocol] Received: 3319000000fdf703fa00070000000a000000010b520ec20ee428f900b000630063006300631388000000000000000000000b5200000ec200000ee4000028f9fffffffc000000570000005e000000b000000b6400000ed000000eea0000291e000200050000000000000000000000000000095d096709450079009d00a00000ffffffffffffffffffffffff000000000003ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000001151f000000000002260b0000000000021c7b00000000000508dc0000000000023883000000000000a729000000000000ba790000000000034b5c1806

2024-06-28 14:05:21.557 DEBUG (MainThread) [goodwe.protocol] Opening connection. 2024-06-28 14:05:21.559 DEBUG (MainThread) [goodwe.protocol] Connection closed. 2024-06-28 14:05:21.562 DEBUG (MainThread) [goodwe.protocol] Connection opened. 2024-06-28 14:05:21.563 DEBUG (MainThread) [goodwe.protocol] Sending: READ 61 registers from 35301 (331a00000006f70389e5003d) 2024-06-28 14:05:21.596 DEBUG (MainThread) [goodwe.protocol] Received: 331a0000007df7037a00002e8500020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009500950095000000000ffffffff17701715000000000000000000000000006b0066000000000000000000000000000000000000000000000000000000000000

ivik commented 2 months ago

Goodwe updated firmware, it works much better.