AdyRock / ady.solarman

GNU General Public License v3.0
0 stars 1 forks source link

Can't connect to inverter Sofar Solar 15KWTL-G3 or WIFI dongle LSW3 #9

Open JonHea opened 1 year ago

JonHea commented 1 year ago

Hello! I can connect to Solarman-Cloud, but I can't connect to Solar 15KWTL-G3 or WIFI dongle, Homey is on the same subnet as WIFI dongle When I add "Summary / Inverter (SoFar)" I get the error message "HTTPS Error: Noting returned" Applies even if I add "Solar Panel (SoFar)". What could be wrong?? Is Solar 15KWTL-G3 or WIFI dongle LSW3 supported at all?? Kind regards, Jonas

AdyRock commented 1 year ago

Can you check in the Configure App page to see if it reports that it has found an inverter. If you see a message then it might be possible to add support if I can find out the MODBUS registers for that model.

JonHea commented 1 year ago

Hi Adrian! Thanks for fast response. Yes, the log finds an inverter, but it cannot be added as a device. I have tried a number of Home Assistant integrations, but have not been able to connect to the WIFI dongle to get the full data. However, I have managed to get data out of the following addresses:

Best regards Jonas

Från: Adrian Rockall @.> Skickat: den 10 maj 2023 16:41 Till: AdyRock/ady.solarman @.> Kopia: Jonas Hellman @.>; Author @.> Ämne: Re: [AdyRock/ady.solarman] Can't connect to inverter Sofar Solar 15KWTL-G3 or WIFI dongle LSW3 (Issue #9)

Can you check in the Configure App page to see if it reports that it has found an inverter. If you see a message then it might be possible to add support if I can find out the MODBUS registers for that model.

— Reply to this email directly, view it on GitHubhttps://github.com/AdyRock/ady.solarman/issues/9#issuecomment-1542325789, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7XSF54QYWQLB2PXM2U36UTXFOSH3ANCNFSM6AAAAAAX4S4QKM. You are receiving this because you authored the thread.Message ID: @.**@.>>

AdyRock commented 1 year ago

Ah, that's good. I think I have a map that fits those addresses so I will include it ASAP.

AdyRock commented 1 year ago

OK, new test version is in the store. Fingers crossed the map I had is good for your inverter.

JonHea commented 1 year ago

Great, I'll try tomorrow when the inverter has woken up, it must have sun to start... // Jonas

Från: Adrian Rockall @.> Skickat: den 10 maj 2023 22:06 Till: AdyRock/ady.solarman @.> Kopia: Jonas Hellman @.>; Author @.> Ämne: Re: [AdyRock/ady.solarman] Can't connect to inverter Sofar Solar 15KWTL-G3 or WIFI dongle LSW3 (Issue #9)

OK, new test version is in the store. Fingers crossed the map I had is good for your inverter.

— Reply to this email directly, view it on GitHubhttps://github.com/AdyRock/ady.solarman/issues/9#issuecomment-1542740638, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7XSF52W6CDYZSPI3HGDE63XFPYLXANCNFSM6AAAAAAX4S4QKM. You are receiving this because you authored the thread.Message ID: @.**@.>>

JonHea commented 1 year ago

Hi Adrian! I still can't add the inverter as a local device, I have sent you the log. // Jonas

From: Adrian Rockall @.> Sent: Wednesday, 10 May, 2023 22:06 To: AdyRock/ady.solarman @.> Cc: Jonas Hellman @.>; Author @.> Subject: Re: [AdyRock/ady.solarman] Can't connect to inverter Sofar Solar 15KWTL-G3 or WIFI dongle LSW3 (Issue #9)

OK, new test version is in the store. Fingers crossed the map I had is good for your inverter.

— Reply to this email directly, view it on GitHubhttps://github.com/AdyRock/ady.solarman/issues/9#issuecomment-1542740638, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7XSF52W6CDYZSPI3HGDE63XFPYLXANCNFSM6AAAAAAX4S4QKM. You are receiving this because you authored the thread.Message ID: @.**@.>>

AdyRock commented 1 year ago

Unfortunately, the only log I have from this app is just showing errors due to a bug I created in this test version, where the data for the new capabilities wasn't available on old devices. That will be fixed in the next update so existing users can continue to use the old device but will need to delete it and add it again to get the new features.

So when you try to add a local device (Grid, Inverter, Solar Panel or Summary), does it just say no devices found?

AdyRock commented 1 year ago

If you go to the Configure App page and select the Send Command tab, type in 1156 into the read register box and click on Send, do you get the grid frequency * 100 back? image

JonHea commented 1 year ago

Hi Adrian! Applies to V1.1.4 --> Local inverter The log says that it found an inverter, but it cannot be added as a device. Register 1156 gives 4997 which is the frequency 49.97Hz, exactly right :-) Register 1157 gives 1012 which is Total AC Output Power 10.12 kW, probably correct. //Jonas

From: Adrian Rockall @.> Sent: Friday, 12 May, 2023 00:54 To: AdyRock/ady.solarman @.> Cc: Jonas Hellman @.>; Author @.> Subject: Re: [AdyRock/ady.solarman] Can't connect to inverter Sofar Solar 15KWTL-G3 or WIFI dongle LSW3 (Issue #9)

If you go to the Configure App page and select the Send Command tab, type in 1156 into the read register box and click on Send, do you get the grid frequency * 100 back? [image]https://user-images.githubusercontent.com/38184396/237829307-72f1fc48-8274-427a-950a-626297c2e8b0.png

— Reply to this email directly, view it on GitHubhttps://github.com/AdyRock/ady.solarman/issues/9#issuecomment-1544796224, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7XSF5ZAHYELJZ3ZD5R2PITXFVUZHANCNFSM6AAAAAAX4S4QKM. You are receiving this because you authored the thread.Message ID: @.**@.>>

AdyRock commented 1 year ago

When it says it found an inverter, does it show the IP address followed by the serial number?

JonHea commented 1 year ago

Yes!

//jonas

From: Adrian Rockall @.> Sent: Friday, 12 May, 2023 14:19 To: AdyRock/ady.solarman @.> Cc: Jonas Hellman @.>; Author @.> Subject: Re: [AdyRock/ady.solarman] Can't connect to inverter Sofar Solar 15KWTL-G3 or WIFI dongle LSW3 (Issue #9)

When it says it found an inverter, does it show the IP address followed by the serial number?

— Reply to this email directly, view it on GitHubhttps://github.com/AdyRock/ady.solarman/issues/9#issuecomment-1545655406, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7XSF55OAALLUXKTN5CUXEDXFYTDTANCNFSM6AAAAAAX4S4QKM. You are receiving this because you authored the thread.Message ID: @.**@.>>

AdyRock commented 1 year ago

I will publish a new test version later with more diagnostics logging to try and find out what is going wrong.

AdyRock commented 1 year ago

New test version is in the store that logs the checking procedure to hopefully highlight why it fails.

JonHea commented 1 year ago

Q

So when you try to add a local device (Grid, Inverter, Solar Panel or Summary), does it just say no devices found?

A Yes

//Jonas

Skickat från min iPhone

12 maj 2023 kl. 00:48 skrev Adrian Rockall @.***>:



Unfortunately, the only log I have from this app is just showing errors due to a bug I created in this test version, where the data for the new capabilities wasn't available on old devices. That will be fixed in the next update so existing users can continue to use the old device but will need to delete it and add it again to get the new features.

So when you try to add a local device (Grid, Inverter, Solar Panel or Summary), does it just say no devices found?

— Reply to this email directly, view it on GitHubhttps://github.com/AdyRock/ady.solarman/issues/9#issuecomment-1544788980, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7XSF54ONGUF5JKNWDEFNGLXFVUC7ANCNFSM6AAAAAAX4S4QKM. You are receiving this because you authored the thread.Message ID: @.***>

JonHea commented 1 year ago

Hi !

Log local data —> True Log internet data —> True

2023-05-12T18:16:08.132Z ** App has initialised. ***

Skickat från min iPhone

12 maj 2023 kl. 19:44 skrev Adrian Rockall @.***>:



New test version is in the store that logs the checking procedure to hopefully highlight why it fails.

— Reply to this email directly, view it on GitHubhttps://github.com/AdyRock/ady.solarman/issues/9#issuecomment-1546079147, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7XSF52RCN3JJAGFFD5C6A3XFZZHXANCNFSM6AAAAAAX4S4QKM. You are receiving this because you authored the thread.Message ID: @.***>

AdyRock commented 1 year ago

Can you turn off the log options so it reduces the amount of information. Then restart the app and give it a minute. You should get something like

Checking register 1156 for grid frequency:

Checking register 524 for grid frequency:

JonHea commented 1 year ago

Hi

I had to reinstall the app to get the info

​2023-05-12T19:21:26.588Z Found Inverter: : 192.168.101.71, 2376427885

Checking register 1156 for grid frequency:

//Jonas

Skickat från min iPhone

12 maj 2023 kl. 21:09 skrev Adrian Rockall @.***>:



Can you turn off the log options so it reduces the amount of information. Then restart the app and give it a minute. You should get something like

Checking register 1156 for grid frequency:

Checking register 524 for grid frequency:

— Reply to this email directly, view it on GitHubhttps://github.com/AdyRock/ady.solarman/issues/9#issuecomment-1546165230, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7XSF5ZYA7CDYFEMFSUDTQDXF2DE3ANCNFSM6AAAAAAX4S4QKM. You are receiving this because you authored the thread.Message ID: @.***>

JonHea commented 1 year ago

Hi!

I had to reinstall the app to get the info.

//Jonas ​

2023-05-12T19:21:26.588Z Found Inverter: : 192.168.101.71, 2376427885

Checking register 1156 for grid frequency:

Skickat från min iPhone

12 maj 2023 kl. 21:09 skrev Adrian Rockall @.***>:



Can you turn off the log options so it reduces the amount of information. Then restart the app and give it a minute. You should get something like

Checking register 1156 for grid frequency:

Checking register 524 for grid frequency:

— Reply to this email directly, view it on GitHubhttps://github.com/AdyRock/ady.solarman/issues/9#issuecomment-1546165230, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7XSF5ZYA7CDYFEMFSUDTQDXF2DE3ANCNFSM6AAAAAAX4S4QKM. You are receiving this because you authored the thread.Message ID: @.***>

AdyRock commented 1 year ago

Hmm, OK, so it was found, so it should be available when you add a device. Can you enable the Log Local Data option and then try adding an inverter, then send the log.

JonHea commented 1 year ago

I have tried adding all types of device, except solarman, the log says nothing

//Jonas

[image0.png][image1.png]

Skickat från min iPhone

12 maj 2023 kl. 21:51 skrev @.***>:



Hmm, OK, so it was found, so it shouldbeavailable when you add a device. Can you enable the Log Local Data optionandthen try adding an inverter, then send thelog.

— Reply to this email directly, view it on GitHubhttps://github.com/AdyRock/ady.solarman/issues/9#issuecomment-1546214418,orunsubscribehttps://github.com/notifications/unsubscribe-auth/A7XSF5ZZY4JC4O7GEVDRM3DXF2IC7ANCNFSM6AAAAAAX4S4QKM. You are receiving this because you authored the thread.Message ID: @.***>

AdyRock commented 1 year ago

Ok, then I will go back to the code and add more logging. Thanks for your patience.

JonHea commented 1 year ago

no problem, glad to be able to help. Appreciate your attempts. now it's evening in Sweden, inverter sleeps...

//Jonas

Skickat från min iPhone

12 maj 2023 kl. 22:41 skrev Adrian Rockall @.***>:



Ok, then I will go back to the code and add more logging. Thanks for your patience.

— Reply to this email directly, view it on GitHubhttps://github.com/AdyRock/ady.solarman/issues/9#issuecomment-1546270900, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7XSF55ZCXPQZ5EXL3GQ2LLXF2N67ANCNFSM6AAAAAAX4S4QKM. You are receiving this because you authored the thread.Message ID: @.***>

AdyRock commented 1 year ago

I have published a new test version for you to try when the Sun comes out to play. As I was adding more logging, I found that the new map for your inverter had quite a few issues. I found it on the internet a while back and thought I had updated the entries to my format, but it seems I had not completed the task.

JonHea commented 1 year ago

Hi Adrian! V1.1.7 Busy yesterday, he did not test the latest version. One step forward, I now have the option to add local devices, however, the values are not updated. Without timestamp the last value is when the app was started. Solarman also went in, but no temperatures from the inverter yet. https://pysolarmanv5.readthedocs.io/en/stable/solarmanv5_protocol.html // Jonas

From: Adrian Rockall @.> Sent: Saturday, 13 May, 2023 22:19 To: AdyRock/ady.solarman @.> Cc: Jonas Hellman @.>; Author @.> Subject: Re: [AdyRock/ady.solarman] Can't connect to inverter Sofar Solar 15KWTL-G3 or WIFI dongle LSW3 (Issue #9)

I have published a new test version for you to try when the Sun comes out to play. As I was adding more logging, I found that the new map for your inverter had quite a few issues. I found it on the internet a while back and thought I had updated the entries to my format, but it seems I had not completed the task.

— Reply to this email directly, view it on GitHubhttps://github.com/AdyRock/ady.solarman/issues/9#issuecomment-1546743280, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7XSF57JQ4CMWONRDFGPAALXF7UEVANCNFSM6AAAAAAX4S4QKM. You are receiving this because you authored the thread.Message ID: @.**@.>>

AdyRock commented 1 year ago

OK, could you enable LOG LOCAL DATA and then restart the app. Give it a minute and then Send Log. The map I have doesn't give all the same information as my inverter, so I had to put some checks in before updating some capabilities. Maybe I have missed one or two, which is preventing the timer from updating.

JonHea commented 1 year ago

Hello!

I uninstalled the app, restarted homey, installed the app, Enabled log local data, added inverter, added solar. Below you can see the log:

@.***

//Jonas

From: Adrian Rockall @.> Sent: Monday, 15 May, 2023 09:58 To: AdyRock/ady.solarman @.> Cc: Jonas Hellman @.>; Author @.> Subject: Re: [AdyRock/ady.solarman] Can't connect to inverter Sofar Solar 15KWTL-G3 or WIFI dongle LSW3 (Issue #9)

OK, could you enable LOG LOCAL DATA and then restart the app. Give it a minute and then Send Log. The map I have doesn't give all the same information as my inverter, so I had to put some checks in before updating some capabilities. Maybe I have missed one or two, which is preventing the timer from updating.

— Reply to this email directly, view it on GitHubhttps://github.com/AdyRock/ady.solarman/issues/9#issuecomment-1547368576, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7XSF52P3FRY7WZU46W2OU3XGHOXRANCNFSM6AAAAAAX4S4QKM. You are receiving this because you authored the thread.Message ID: @.**@.>>