Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

SolaX Power integration can't access inverter information (Failed to connect) #66617

Closed
midadami opened this issue Feb 15, 2022 · 69 comments
Closed

Comments

@midadami
Copy link

midadami commented Feb 15, 2022

The problem

I can obtain the data by doing:
curl -d "optType=ReadRealTimeData&pwd=admin" -X POST http://192.168.1.100
{"sn":"SWXXXXXX","ver":"2.035.01","type":4,"Data":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65591,65535,7907,0,22732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "Information":[4.200,4,"XB32XXXXXXX",1,0.00,0.00,1.37,0.00,0.00,1]}
All the data is 0 cuase its at night. Can edit with real data in the moorning.
In the moorning with only 50W of real time power generation:
{"sn":"SWXXXXXX","ver":"2.035.01","type":4,"Data":[2385,6,55,1536,1721,2,2,39,39,5001,2,2427,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,214,0,0,0,0,0,0,65371,65535,7907,0,22911,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "Information":[4.200,4,"XB32XXXXXXX",1,2.19,0.00,1.37,0.00,0.00,1]}

If I configure SolaX Power with the ip address (192.168.1.100) and the password (admin) it states Failed to connect.
Take into account I am trying to connect to a Solax X1 Boost v3.2 Inverter not a Air_Mini which seems to work fine.

I might be doing something wrong as I am a total newbie but can't find the problem while I read it works perfectly from everyone with a Air_Mini. I am sure that the return information is different on the Air_Mini than on the X1 Boost v3.2 as the data doens't match.

After a quick check this is what I gathered from the data:
Decimal spots are removed so 10.50=1050, 0.5=5 and so on. Im not sure if the decimal spots problem is me problem or general problem. Im from Spain and we tend to use commas to separate decimals so not sure if inverter is mixing stuff up.
0:voltageTotal
1:ampsTotal
2:acpower
3:voltage1
4:voltage2
5:amps1
6:amps2
7:powerdc1
8:powerdc2
*9:always around 5000, 10 up 10 down aprox. grid frecuency?
*10:always 2. MPPT used?
11:yieldtotal
12:
13:dailyyield
*38:temperature???
*40:around 214 and 215
47:energy to grid? a range(0,X) number when placing power to grid. 64300 when taking energy from grid. 64300-65536= energy taken from grid?
48:0 or 65535. a sign? direction of the flow of power?
49:feedinenergytotal
51:consumeenergytotal
*54:temperature??

Any information that helps just ask. Thanks

What version of Home Assistant Core has the issue?

core-2022.2.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

SolaX Power

Link to integration documentation on our website

https://www.home-assistant.io/integrations/solax/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@probot-home-assistant
Copy link

Hey there @squishykid, mind taking a look at this issue as it has been labeled with an integration (solax) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)


solax documentation
solax source
(message by IssueLinks)

@gingerwookieee
Copy link

Likewise, same issue

@Metalfireblade
Copy link

Same problem here. Failed to connect.

@DefenestratorNZ
Copy link

Same problem here. on a fresh HA install
just had solax installed

@FranciscoMaioR
Copy link

I cant set up the integration. When I enter the IP the error "Failed to connect" always comes up. Can someone help me?

@DefenestratorNZ
Copy link

I cant set up the integration. When I enter the IP the error "Failed to connect" always comes up. Can someone help me?

yeah this seems to be the issue with the integration atm.
we haven't had any response to the issue yet

@jirisvozil
Copy link

Hello, same issue here. I looked through Wireshark and the API is answering, but the result is the same - Failed to connect.

@jirisvozil

This comment was marked as abuse.

@epenet
Copy link
Contributor

epenet commented Apr 21, 2022

Please don't ping specific users. I don't use this integration myself and I'm not convinced balloob/cdce8p do either.

You may need to contribute on the parent library: https://github.com/squishykid/solax which seems well maintained.

@jirisvozil
Copy link

Please don't ping specific users. I don't use this integration myself and I'm not convinced balloob/cdce8p do either.

You may need to contribute on the parent library: https://github.com/squishykid/solax which seems well maintained.

Ok, sorry and thank you!

@Tepepaz
Copy link

Tepepaz commented Apr 22, 2022

Same issue here with X3-Hybrid-G4, dongle on 2.035.01 firmware.

@dohnalekp
Copy link

Same issue with X3-Hybrid-G4, dongle firmware 3.001.02.

@squishykid
Copy link
Contributor

Please perform the troubleshooting steps as outlined here under "Inverter not Supported Yet": https://github.com/squishykid/solax/wiki/DiscoveryError#inverter-not-supported-yet

Share ALL of the following:

  • curl command
  • curl response
  • inverter model
  • firmware
  • how you are connecting to the inverter
  • whether you are using a wifi dongle
  • logs from the home assistant instance

When you paste your results, use the code formatting option

I am a volunteer, just like lots of other people helping out with this project. I do not receive any compensation for providing assistance. Please help us so we can help you.

@dohnalekp
Copy link

dohnalekp commented Apr 23, 2022

When i adding integration for solax, a see error ""
My info:

  • Solax X3 Hybrid G4
  • using Wifi dongle; firmware 3.001.02
    Curl respone:
    curl -d "optType=ReadRealTimeData&pwd=XXXXXXXXX" -X POST http://192.168.88.101

Log from HA:
2022-04-23 06:54:00 ERROR (MainThread) [homeassistant.components.solax.config_flow] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/solax/config_flow.py", line 52, in async_step_user
serial_number = await validate_api(user_input)
File "/usr/src/homeassistant/homeassistant/components/solax/config_flow.py", line 33, in validate_api
api = await real_time_api(
File "/usr/local/lib/python3.9/site-packages/solax/init.py", line 37, in real_time_api
i = await inverter.discover(ip_address, port, pwd)
File "/usr/local/lib/python3.9/site-packages/solax/inverter.py", line 96, in discover
await i.get_data()
File "/usr/local/lib/python3.9/site-packages/solax/inverter.py", line 37, in get_data
data = await self.make_request(
File "/usr/local/lib/python3.9/site-packages/solax/inverter.py", line 213, in make_request
async with session.post(url) as req:
File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 1138, in aenter
self._resp = await self._coro
File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 559, in _request
await resp.start(conn)
File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 913, in start
self._continue = None
File "/usr/local/lib/python3.9/site-packages/aiohttp/helpers.py", line 721, in exit
raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

  • curl -d "optType=ReadRealTimeData&pwd=XXXXXXWU" -X POST http://192.168.88.101
    {"sn":"SX5XXXXXXX","ver":"3.003.02","type":14,"Data":[2373,2411,2438,11,12,11,80,139,82,301,3314,3836,3,4,118,181,5001,5000,5000,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,65378,65535,0,0,0,23490,0,0,2340,0,0,1,41,459,256,12041,5894,5636,100,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,89,0,21,0,0,0,70,0,48,0,20,0,73,0,1,0,0,0,0,0,58,0,0,0,42,0,0,0,0,0,0,0,0,0,1,20,1,21,22,256,2628,1800,262,330,179,160,33,32,2,1106,520,8995,8995,0,0,0,0,3251,3246,31903,0,21302,14389,18753,12593,16690,12355,13369,21302,14389,18753,12593,16690,12355,13369,21302,14389,18754,12593,16693,12355,12596,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3331,3329,770,1025,0,23490,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"Information":[10.000,14,"H34T10HB322314",8,1.15,0.00,1.14,1.08,0.00,1]}

@jirisvozil
Copy link

Hello Robin,

Thanks for your help.

X3-Hybrid-G4, Wifi dongle 2.034.06 firmware.
Home Assistant 2022.4.5 - nothing relevant in the log

curl -d "optType=ReadRealTimeData&pwd=XXXX" -X POST http://5.8.8.8

{"sn":"SWVSHJLXXX","ver":"2.034.06","type":14,"Data":[2399,2388,2385,12,11,11,203,167,127,497,2813,3105,96,31,2701,966,4999,4998,4999,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,6,0,0,0,0,24670,1220,3034,2447,123,3009,1,47,491,256,3865,5898,5636,100,0,37,0,0,0,0,0,0,0,0,0,0,0,0,0,1651,0,56,0,0,0,797,0,923,0,28,42,1833,0,74,0,0,0,86,0,403,0,0,0,4,0,0,0,0,0,0,0,0,0,1,75,1,26,84,256,2628,1800,318,350,234,211,34,34,7,1106,520,8995,8995,0,0,0,0,3401,3393,49921,2,21302,14389,18497,12355,16695,12355,14645,21302,14389,18497,12355,16695,12355,14645,21302,14389,18498,12611,16689,12611,14387,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1027,2818,770,1027,0,24670,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "Information":[10.000,14,"H34T10HB318129",1,1.15,0.00,1.14,1.08,0.00,1]}

@squishykid
Copy link
Contributor

@dohnalekp @jirisvozil could you please also supply the following:

Now the fun challenge: there is likely to be a Data array in the curl output. Each number in this array is a sensor value.

You will need to determine which sensor values correspond to which element in the Data array. One of the existing inverters might already have most of the right values. You can see an example of this mapping here.

Please include this information in the issue.

I have a hunch that your data might have the same structure as the existing X3 integration, so please check here if all the values line up: https://github.com/squishykid/solax/blob/master/solax/inverters/x3_v34.py

If they don't, you will need to supply the data mapping information

@DefenestratorNZ
Copy link

`Curl Command
curl -d "?optType=ReadRealTimeData&pwd=********" -X POST http://192.168.0.199/

curl response
{"sn":"SWEH******","ver":"2.034.06","type":3,"Data":[2380,119,2862,1957,3178,78,43,1519,1358,5001,2,9634,0,51,0,0,23420,10,0,22,10,0,3500,0,15,0,0,0,0,0,0,0,0,0,0,0,0,100,0,33,3701,0,0,10,2402,1,0,0,65239,65535,7233,0,1016,1,3159,33,256,2628,1800,262,250,191,165,33,32,33,1,1,264,0,3905,0,9614,0,0,0,62676,65535,258,0,0,0,0,0,0,0,0,0,1,0,959,0,0,0,0,50,0,4,0,0,0,0,0,0,0,0,0,0,1,22016,5909,6155,5636,0,0,0,0,1106,519,8738,8481,0,0,0,0,273,2338,0,0,3254,3235,20175,12,21302,14389,18497,12855,16694,12355,13621,21302,14389,18497,12855,16694,12355,13621,21302,14389,18242,12601,16696,12355,13360,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1793,2052,770,1537,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "Information":[5.000,3,"H1I502G9050022",1,3.26,0.00,3.23,1.05,0.00,1]}

inverter model
X1-Hybrid-G3

firmware
Wifi dongle 2.034.06 firmware

logs from the home assistant instance
Nothing in the log`
ill compare the output to the existing X3 array

@dohnalekp
Copy link

dohnalekp commented Apr 24, 2022

Hi @squishykid,
for my version X3-hybrid G4 with wifi dongle with firmware 3.001.02 i probably identify this senzor map:
_sensor_map = {
'Network Voltage Phase 1': (0, 'V', div10),
'Network Voltage Phase 2': (1, 'V', div10),
'Network Voltage Phase 3': (2, 'V', div10),

        'Output Current Phase 1':                (3, 'A', twoway_div10),
        'Output Current Phase 2':                (4, 'A', twoway_div10),
        'Output Current Phase 3':                (5, 'A', twoway_div10),


        'Power Now Phase 1':                     (6, 'W', to_signed),
        'Power Now Phase 2':                     (7, 'W', to_signed),
        'Power Now Phase 3':                     (8, 'W', to_signed),
        'Power Now Total':                       (9, 'W', to_signed),


        'PV1 Voltage':                           (10, 'V', div10),
        'PV2 Voltage':                           (11, 'V', div10),
        'PV1 Current':                           (12, 'A', div10),
        'PV2 Current':                           (13, 'A', div10),
        'PV1 Power':                             (14, 'W'),
        'PV2 Power':                             (15, 'W'),


      


        'Grid Frequency Phase 1':                (16, 'Hz', div100),
        'Grid Frequency Phase 2':                (17, 'Hz', div100),
        'Grid Frequency Phase 3':                (18, 'Hz', div100),


      


        'Battery Voltage':                       (42, 'V', div100),
        'Battery Current':                       (43, 'A', twoway_div100),
        'Battery Power':                         (44, 'W', to_signed),
        'Battery Temperature':                   (105, 'C'),
        'Battery Remaining Capacity':            (103, '%'),


        
        'Total Feed-in Energy Resets':           (68, ''),
        
    }

@jirisvozil
Copy link

nergy Rese

I don't have much time right now, but I can confirm most of dohnalekp's findings. I just think, that the last one is : Total Feed-in Energy': (68, 'kWh', feedin_energy).

I'll try to add something during the week.

Thx, Jiri
X3-Hybrid-G4, Wifi dongle 2.034.06 firmware.

@Tepepaz
Copy link

Tepepaz commented Apr 25, 2022

X3-Hybrid-G4
WiFi dongle on 2.035.01 firmware

curl -d "optType=ReadRealTimeData&pwd=admin" -X POST http://5.8.8.8
                                                                                                                                                                                                                                                                             
{"sn":"SW2*******","ver":"2.035.01","type":14,"Data":[2364,2345,2382,10,10,10,67,63,68,198,4275,4581,69,72,2988,3320,5001,5001,4999,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65,0,0,0,0,49640,1180,5910,4933,119,5870,1,42,133,256,14381,5648,5636,100,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,2754,0,50,448,0,1,800,0,1023,0,13,216,2547,0,244,0,0,0,60,0,1113,0,30,0,97
4,0,0,0,0,0,0,0,0,0,1,95,1,26,218,256,5256,3600,150,350,243,208,34,34,5,2130,521,9252,9252,9252,9252,0,0,3439,3413,45348,2,21302,14389,18497,12596,16696,12355,12600,21302,14389,18497,12596,16696,12355,12600,21302,14389,18498,13108,16688,12611,12592,21302,14389,18498,13108,16688,12611,13104,21302,14389,18498,12344,16693,12611,12343,4611,307
9,770,1031,0,49640,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],          "Information":[10.000,14,"XXXXXXXXXXXX",1,1.18,0.00,1.17,1.07,0.00,1]}

@Tepepaz
Copy link

Tepepaz commented May 2, 2022

I have made a spreadsheet trying to match the numbers with the correct sensor.

If someone would like to contribute I made it publicly editable.

https://docs.google.com/spreadsheets/d/1-scQT3MN871zuhe2x-X6myknQDyWaCwh3igaLTdE2PY/edit?usp=sharing

@dohnalekp
Copy link

Hi @squishykid,
can I try add my edited maps for my firmware 3.003.02 in my homeassistant?

@simoesp
Copy link

simoesp commented May 23, 2022

Inverter Model Solax Mini X1-2.0

curl -s -w '\n' -X POST http://5.8.8.8 --data 'optType=ReadRealTimeData&pwd=XXXXXX'
{"sn":"SXXXXXXXXX","ver":"3.003.02","type":4,"Data":[2374,34,830,1572,0,54,0,863,0,4995,2,328,0,94,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,0,53,0,0,0,0,0,0,516,0,1526,0,4092,0,0,43,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"Information":[2.000,4,"XM32XXXXXXX",8,2.18,0.00,1.36,0.00,0.00,1]}

for those who don't know the password for the inverter it can be obtained on solaxcloud
Device > Inverter > and at the end there is a lock icon with a title Standby Password Query

@peterj1977
Copy link

Inverter Model Solax Mini X1-2.0

curl -s -w '\n' -X POST http://5.8.8.8 --data 'optType=ReadRealTimeData&pwd=XXXXXX'
{"sn":"SXXXXXXXXX","ver":"3.003.02","type":4,"Data":[2374,34,830,1572,0,54,0,863,0,4995,2,328,0,94,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,0,53,0,0,0,0,0,0,516,0,1526,0,4092,0,0,43,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"Information":[2.000,4,"XM32XXXXXXX",8,2.18,0.00,1.36,0.00,0.00,1]}

for those who don't know the password for the inverter it can be obtained on solaxcloud Device > Inverter > and at the end there is a lock icon with a title Standby Password Query

i checked in my solaxCloud but there is no 'Lock' icon

Kind regards

Peter

@simoesp
Copy link

simoesp commented Jun 14, 2022

Inverter Model Solax Mini X1-2.0

curl -s -w '\n' -X POST http://5.8.8.8 --data 'optType=ReadRealTimeData&pwd=XXXXXX'
{"sn":"SXXXXXXXXX","ver":"3.003.02","type":4,"Data":[2374,34,830,1572,0,54,0,863,0,4995,2,328,0,94,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,0,53,0,0,0,0,0,0,516,0,1526,0,4092,0,0,43,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"Information":[2.000,4,"XM32XXXXXXX",8,2.18,0.00,1.36,0.00,0.00,1]}

for those who don't know the password for the inverter it can be obtained on solaxcloud Device > Inverter > and at the end there is a lock icon with a title Standby Password Query

i checked in my solaxCloud but there is no 'Lock' icon

Kind regards

Peter

image

@horamarques
Copy link

horamarques commented Jul 28, 2022

Same issue.
Inverter Model: X3-MIC/PRO-G2
Firmware: 3.003.02

% curl -s -w '\n' -X POST http://192.168.xxx.xxx --data 'optType=ReadRealTimeData&pwd=XXXXXXXXXX'
{"sn":"XXXXXXXXXX","ver":"3.003.02","type":16,"Data":[2430,2414,2425,22,22,22,534,531,533,2029,0,0,85,0,0,1737,0,0,4998,4997,4996,2,956,0,101,4000,48,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,94,0,5508,0,10165,0,1687,2,1,10,1,0,29804,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"Information":[4.000,16,"xxxxxxxxxxxxxxxxx",8,1.10,0.00,1.07,1.01,0.00,1]}

@xklech
Copy link

xklech commented Aug 1, 2022

I am missing that password icon as well in cloud.

@jailway
Copy link

jailway commented Sep 2, 2022

When i adding integration for solax, a see error "" My info:

  • Solax X3 Hybrid G4
  • using Wifi dongle; firmware 3.001.02
    Curl respone:
    curl -d "optType=ReadRealTimeData&pwd=XXXXXXXXX" -X POST http://192.168.88.101

Log from HA: 2022-04-23 06:54:00 ERROR (MainThread) [homeassistant.components.solax.config_flow] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/solax/config_flow.py", line 52, in async_step_user serial_number = await validate_api(user_input) File "/usr/src/homeassistant/homeassistant/components/solax/config_flow.py", line 33, in validate_api api = await real_time_api( File "/usr/local/lib/python3.9/site-packages/solax/init.py", line 37, in real_time_api i = await inverter.discover(ip_address, port, pwd) File "/usr/local/lib/python3.9/site-packages/solax/inverter.py", line 96, in discover await i.get_data() File "/usr/local/lib/python3.9/site-packages/solax/inverter.py", line 37, in get_data data = await self.make_request( File "/usr/local/lib/python3.9/site-packages/solax/inverter.py", line 213, in make_request async with session.post(url) as req: File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 1138, in aenter self._resp = await self._coro File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 559, in _request await resp.start(conn) File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 913, in start self._continue = None File "/usr/local/lib/python3.9/site-packages/aiohttp/helpers.py", line 721, in exit raise asyncio.TimeoutError from None asyncio.exceptions.TimeoutError

  • curl -d "optType=ReadRealTimeData&pwd=XXXXXXWU" -X POST http://192.168.88.101
    {"sn":"SX5XXXXXXX","ver":"3.003.02","type":14,"Data":[2373,2411,2438,11,12,11,80,139,82,301,3314,3836,3,4,118,181,5001,5000,5000,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,65378,65535,0,0,0,23490,0,0,2340,0,0,1,41,459,256,12041,5894,5636,100,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,89,0,21,0,0,0,70,0,48,0,20,0,73,0,1,0,0,0,0,0,58,0,0,0,42,0,0,0,0,0,0,0,0,0,1,20,1,21,22,256,2628,1800,262,330,179,160,33,32,2,1106,520,8995,8995,0,0,0,0,3251,3246,31903,0,21302,14389,18753,12593,16690,12355,13369,21302,14389,18753,12593,16690,12355,13369,21302,14389,18754,12593,16693,12355,12596,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3331,3329,770,1025,0,23490,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"Information":[10.000,14,"H34T10HB322314",8,1.15,0.00,1.14,1.08,0.00,1]}

Hi @dohnalekp , any luck solving the TimeoutError issue? I have the same inverter, same firmware, and facing the same issue. Curl also works for me and gets me a similar response.

Thanks,

Marek

@nazar-pc
Copy link

nazar-pc commented Aug 2, 2023

Home Assistant 2023.8.0 after upgrade installed solax 0.3.2 dependency (rather than 0.3.1) and my inverter connected successfully without any manual intervention 🎉

I think this issue is finally resolved.

@joostlek
Copy link
Member

joostlek commented Aug 2, 2023

Home Assistant 2023.8.0 after upgrade installed solax 0.3.2 dependency (rather than 0.3.1) and my inverter connected successfully without any manual intervention 🎉

I think this issue is finally resolved.

What I found out together with @NanoSector is just that the current integration just does a whole lot of requests, and because of this the inverter just doesnt respond because of unknown endpoints (since they are for other types of inverters). Sometimes the inverter just restores in time for the request that is meant for that type, so then it will work, so next reboot can still be a hit or miss

@nazar-pc
Copy link

nazar-pc commented Aug 2, 2023

Well, previous version never ever worked even once, now it worked, which was surprising and automatically attributed by me to updated version 🤷‍♂️

@joostlek
Copy link
Member

joostlek commented Aug 2, 2023

Like I am happy for you, but I want to temper your excitement. For context, the integration itself hasn't changed since 2023.7 so nothing has changed in 2023.8. So next restart of HA could break it again like before, or not.

@nazar-pc
Copy link

nazar-pc commented Aug 3, 2023

Another observation: yes, it doesn't start every time, but:

  1. It doesn't seem to hang HA's startup anymore as it did before
  2. It does start when restarted (maybe a few attempts would be needed, but still)

This is not a solution, but at least some improvement.

@NanoSector
Copy link

Another observation: yes, it doesn't start every time, but:

  1. It doesn't seem to hang HA's startup anymore as it did before

  2. It does start when restarted (maybe a few attempts would be needed, but still)

This is not a solution, but at least some improvement.

I'm still on 2023.7 and both of those points are the same for me (I also mentioned the restarts/reloads fixing it before); what version have you upgraded from?

@nazar-pc
Copy link

nazar-pc commented Aug 4, 2023

2023.7, but maybe it was fixed a bit earlier, I just saw it getting stuck every single time and I was already in terminal ready to apply workaround right after upgrade. I was just a bit busy this time and noticed it booted successfully on its own.

@Elliottmonaghan
Copy link

Still not working on latest version, x1boost.

@nazar-pc
Copy link

Integration reliably starts for me when restart is triggered, would be great if Home Assistant restarted integration a few times on its own.

@brew-your-own
Copy link

I think the discovery code in the solax library is the culprit, it seems to affect the dongle in some way, and then when the right class is up, the dongle fails to answer.

the integration should offer the possibility to override the discovery and configure the right inverter class directly.
I found a way to do this in the upstream solax python library by instantiating the right inverter class directly and bypassing the discovery process entirely. But now to do this in the HA home assistant requires a bit more work.

A possible approach would be to offer a pulldown of the inverters in the config flow, and if none selected, revert back to discovery code.

brew-your-own added a commit to brew-your-own/solax that referenced this issue Jan 21, 2024
in the case where the Inverter type is already known.

Some inverters at the end of the REGISTRY (e.g. X1HybridGen4) randomly
crash because the discovery code issues too many incorrect requests
before sending the correct one.
This patch adds a variant of the entry point in which one can specify
the name of the inverter type.

This addresses home-assistant/core#66617
and home-assistant/core#99421
@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@nazar-pc
Copy link

I don't think it was resolved yet

@Dwdization
Copy link

I confirm, it wasn't. Solax integration is still unusable for X3 G4, out of the box.

@github-actions github-actions bot removed the stale label Feb 10, 2024
@brew-your-own
Copy link

There are 2 open PRs in the upstream solax library that would make it possible to fix this issue:
squishykid/solax#138
and
squishykid/solax#133

@tatealive
Copy link

Would love to see this updated to support X3 G4 using the above open PRs in upstream Solax library
squishykid/solax#138
squishykid/solax#133

@brew-your-own
Copy link

There is a now a new PR in the upstream library that is ready to go:
squishykid/solax#144

I also have a patch for HA to solve this specific issue, but it requires the upstream library to be updated.
As soon as the upstream is updated, I will propose my fix.

@Darsstar Darsstar mentioned this issue Apr 2, 2024
20 tasks
brew-your-own added a commit to brew-your-own/homeassistant-core that referenced this issue Apr 7, 2024
@nazar-pc
Copy link

nazar-pc commented May 3, 2024

I don't think this is the right issue to ask such question @Elliottmonaghan, create a separate issue for this. This issue is about connection issues specifically.

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 11, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests