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

Support for Ethernet Logger LSE-3 #21

Closed
oetiker opened this issue Jul 18, 2024 · 84 comments
Closed

Support for Ethernet Logger LSE-3 #21

oetiker opened this issue Jul 18, 2024 · 84 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@oetiker
Copy link

oetiker commented Jul 18, 2024

I am using a Sofar Hybrid Box (SOFAR HYD 20KTL-3PH) with a LSE-3 logger and get no responses when trying to use the thing with the ha-solarman code. Neither with the code here nor with the original from StephanJoubert.

Reading through @StephanJouberts repo I found this issue which seems to indicate that the LSE-3 device needs different encapsulation ...

Anyone working on this ? Or is there some secret to get my setup to communicate with ha-solarman which I just neglected until now?

@davidrapan
Copy link
Owner

davidrapan commented Jul 18, 2024

Hi @oetiker!

I can try to implement suggested changes but as I don't have the device it will be like shooting in the dark.

Are you willing to try it afterwards and help solve potential bugs and so?

Have fun!

@davidrapan davidrapan changed the title Support for Ethernet Logger LSE-3 [Request0]Support for Ethernet Logger LSE-3 Jul 18, 2024
@davidrapan davidrapan changed the title [Request0]Support for Ethernet Logger LSE-3 [Request] Support for Ethernet Logger LSE-3 Jul 18, 2024
@oetiker
Copy link
Author

oetiker commented Jul 18, 2024

Hi @oetiker!

I can try to implement suggested changes but as I don't have the device it will be like shooting in the dark.

Are you willing to try it afterwards and help solve potential bugs and so?

Have fun!

Hi David

yes sure, I would be totally willing to test and help out :)

cheers
tobi

@davidrapan
Copy link
Owner

davidrapan commented Jul 18, 2024

Ok, I'll let you know whenever there is anything to try out.

But as the code of those suggested changes is apart from the pysolarmanv5 it won't be as straight forward implementation as I initially thought so I can't make promises it will work as great as when it goes through the mentioned python library. But I'll do what I can to make it work. 😉

Have fun!

@davidrapan davidrapan added the enhancement New feature or request label Jul 18, 2024
@davidrapan davidrapan added this to the LSE-3 milestone Jul 18, 2024
@davidrapan davidrapan changed the title [Request] Support for Ethernet Logger LSE-3 Support for Ethernet Logger LSE-3 Jul 18, 2024
@davidrapan davidrapan self-assigned this Jul 20, 2024
@davidrapan
Copy link
Owner

davidrapan commented Aug 3, 2024

Does the Ethernet Stick Logger also responds to the discovery packet? Probably not, right?

@Vollpanto
Copy link

I have both sticks. The Ethernet Adapter also response to the discovery packet.

@Vollpanto
Copy link

Here is a log:
2024-08-03 21:55:14.025 WARNING (MainThread) [custom_components.solarman.api] Querying (1028 - 1067) failed. #0 [TimeoutError]
2024-08-03 21:55:15.026 DEBUG (MainThread) [custom_components.solarman.api] Querying attempts left: 4
2024-08-03 21:55:15.026 DEBUG (MainThread) [custom_components.solarman.api] Reader Task done: False, cancelled: False.
2024-08-03 21:55:15.028 DEBUG (MainThread) [custom_components.solarman.api] [2109340331] Successful reconnect
2024-08-03 21:55:15.028 DEBUG (MainThread) [custom_components.solarman.api] [2109340331] SENT: a5 17 00 10 45 b2 00 ab fa b9 7d 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 04 04 00 28 05 25 59 15
2024-08-03 21:55:15.563 DEBUG (MainThread) [custom_components.solarman.api] [2109340331] V5_SEQ_NO_MISMATCH: a5 17 00 10 45 53 01 03 50 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2e 00 00 00 2a 00 00 00 00 00 00 00 00 00 00 00 2b 00 00 00 00 00 00 00 00 00 00 05 23 00 05 e4 ef 00 08 87 bc 01 97
2024-08-03 21:55:25.020 DEBUG (MainThread) [custom_components.solarman.coordinator] Finished fetching Inverter data in 30.001 seconds (success: False)
2024-08-03 21:55:25.020 DEBUG (MainThread) [custom_components.solarman.coordinator] async_shutdown
2024-08-03 21:55:25.020 INFO (MainThread) [custom_components.solarman.api] Disconnecting from 192.168.1.195:8899

@lcavalli
Copy link
Contributor

lcavalli commented Aug 3, 2024

Indeed it seems so. I currently use an integration based on pure modbus protocol, but I'm testing your integration and the config flow correctly presents the logger IP address, port and also serial number.

@davidrapan
Copy link
Owner

Okay, thanks guys. I'm currently investigating possible approaches to the implementation.

@davidrapan
Copy link
Owner

davidrapan commented Aug 7, 2024

Guys, can anyone test feat: Experimental testing of ethernet stick and show me the debug log? Thanks!

For enabling this there is a new configuration toggle (Solarman protocol passthrough mode) which must be in on position.

@lcavalli
Copy link
Contributor

lcavalli commented Aug 7, 2024

@davidrapan, It is not lack of interest, I'm currently not at home. I will be able to test it when I will come back! Thank you for spending time on this issue.

@davidrapan
Copy link
Owner

davidrapan commented Aug 7, 2024

And then for anyone who is going to try it there is this row in the api.py file (on line 34):

modbus_frame = v5_frame[10:]

Try to tweak number 10. It says how much it should cut from the response from the start and treat the rest as an modbus frame. So try for example maybe also 20 and 2...

But it really depends on what the code is gonna do.

@oetiker
Copy link
Author

oetiker commented Aug 8, 2024

@davidrapan I will be glad to test, but I have not read the code to deeply and I am involved in way to many projects atm ...

  • how do I get the current version of the code ? can I just update ?

  • do I just toggle the new config setting in the config screen ?

@davidrapan
Copy link
Owner

Hi @oetiker,

how do I get the current version of the code ? can I just update ?

You would have to manually download the code in zip and replace it in the HA as this changes are not part of any release.

do I just toggle the new config setting in the config screen ?

Yes.

@lcavalli
Copy link
Contributor

lcavalli commented Aug 8, 2024

how do I get the current version of the code ? can I just update ?

You would have to manually download the code in zip and replace it in the HA as this changes are not part of any release.

You can also select master in version combo box in HACS. Download again if already installed.

@davidrapan
Copy link
Owner

davidrapan commented Aug 8, 2024

You can also select master in version combo box in HACS. Download again if already installed.

I know that you "can" do that but it won't switch to it. It reselects automatically to the release version and thus it never worked for me.

And I think it was also stated that they gonna remove that feature all together though.

@davidrapan
Copy link
Owner

davidrapan commented Aug 9, 2024

It's now part of the 24.08.08 pre-release.

@davidrapan
Copy link
Owner

I was hoping someone would at least give it a try before the planned 08/14/24 release, but I guess I'm out of luck, huh? 😆

@lcavalli
Copy link
Contributor

@davidrapan I'm not at home! Will try as soon as I will be back for sure.

@davidrapan
Copy link
Owner

davidrapan commented Aug 13, 2024

@lcavalli, I know you said that! 😆 I did not mean to pressure anyone with that post! 😆

@proggaras
Copy link

Great work.
Will this also work, when I connect directly to my Deye inverter over RS485?

Detail:
HomeAssistant connects over a "Waveshare RS485 to Ethernet Converter" to my Deye SUN-25K-SG01HP3-EU-AM
deyedirect

@davidrapan
Copy link
Owner

davidrapan commented Aug 18, 2024

Hi @proggaras, this is what https://github.com/kellerza/sunsynk or modbus tcp is for, I guess. 😉

This integration specializes on using Solarman protocol only.

@oetiker
Copy link
Author

oetiker commented Aug 19, 2024

@davidrapan yey, I finally got to test ... unfortunately it does not work yet,. but there is debug data. this is with the released version .17

2024-08-19 09:15:48.279 DEBUG (MainThread) [custom_components.solarman] async_setup_entry({'data': {'name': 'hwr', 'inverter_discovery': True, 'inverter_host': '192.168.0.19', 'inverter_serial': 2108634189, 'inverter_port': 8899, 'inverter_mb_slave_id': 1, 'inverter_passthrough': True, 'lookup_file': 'sofar_g3hyd.yaml', 'battery_nominal_voltage': 48, 'battery_life_cycle_rating': 6000}, 'disabled_by': None, 'domain': 'solarman', 'entry_id': '01J5MQQ8GDVHPMDAB1A3PFHKXQ', 'minor_version': 1, 'options': {'name': 'hwr', 'inverter_discovery': False, 'inverter_host': '192.168.0.19', 'inverter_serial': 2108634189, 'inverter_port': 8899, 'inverter_mb_slave_id': 1, 'inverter_passthrough': True, 'lookup_file': 'sofar_g3hyd.yaml', 'battery_nominal_voltage': 48, 'battery_life_cycle_rating': 6000}, 'pref_disable_new_entities': False, 'pref_disable_polling': False, 'source': 'user', 'title': 'hwr', 'unique_id': None, 'version': 1})
2024-08-19 09:15:48.406 DEBUG (MainThread) [custom_components.solarman.parser] Defaults for update_interval: 10, code: 3, min_span: 25, digits: 6
2024-08-19 09:15:48.406 DEBUG (MainThread) [custom_components.solarman.api] {'identifiers': {('solarman', 2108634189)}, 'name': 'hwr', 'manufacturer': 'Sofar', 'model': 'G3HYD', 'serial_number': 2108634189}
2024-08-19 09:15:48.406 DEBUG (MainThread) [custom_components.solarman] async_setup: coordinator.async_config_entry_first_refresh
2024-08-19 09:15:48.406 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] Scheduling 8 query requests. #0
2024-08-19 09:15:48.406 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] Querying (1028 - 1067) ...
2024-08-19 09:15:48.406 INFO (MainThread) [custom_components.solarman.api] [2108634189] Connecting to 192.168.0.19:8899
2024-08-19 09:15:48.410 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] SENT: a5 17 00 10 45 ae 00 4d 34 af 7d 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 04 04 00 28 05 25 27 15
2024-08-19 09:15:48.896 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] RECD: a5 17 00 10 45 53 01 03 50 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 00 00 00 27 00 00 00 00 00 00 00 00 00 00 00 25 00 00 00 00 00 00 00 00 00 00 02 2b 00 03 d9 6b 00 03 f2 f5 01 a9
2024-08-19 09:15:48.897 WARNING (MainThread) [custom_components.solarman.api] [2108634189] Querying (1028 - 1067) failed. #0 [CRCError: CRC validation failed.]
2024-08-19 09:15:49.098 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] Querying attempts left: 4
2024-08-19 09:15:49.103 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] Successful reconnect
2024-08-19 09:15:49.103 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] SENT: a5 17 00 10 45 af 00 4d 34 af 7d 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 04 04 00 28 05 25 28 15
2024-08-19 09:15:49.606 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] RECD: a5 17 00 10 45 53 01 03 50 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 00 00 00 27 00 00 00 00 00 00 00 00 00 00 00 25 00 00 00 00 00 00 00 00 00 00 02 2b 00 03 d9 6b 00 03 f2 f5 01 a9
2024-08-19 09:15:49.607 WARNING (MainThread) [custom_components.solarman.api] [2108634189] Querying (1028 - 1067) failed. #0 [CRCError: CRC validation failed.]
2024-08-19 09:15:50.008 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] Querying attempts left: 3
2024-08-19 09:15:50.012 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] Successful reconnect
2024-08-19 09:15:50.012 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] SENT: a5 17 00 10 45 b0 00 4d 34 af 7d 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 04 04 00 28 05 25 29 15
2024-08-19 09:15:50.522 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] RECD: a5 17 00 10 45 53 01 03 50 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 00 00 00 27 00 00 00 00 00 00 00 00 00 00 00 25 00 00 00 00 00 00 00 00 00 00 02 2b 00 03 d9 6b 00 03 f2 f5 01 a9
2024-08-19 09:15:50.523 WARNING (MainThread) [custom_components.solarman.api] [2108634189] Querying (1028 - 1067) failed. #0 [CRCError: CRC validation failed.]
2024-08-19 09:15:51.125 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] Querying attempts left: 2
2024-08-19 09:15:51.128 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] Successful reconnect
2024-08-19 09:15:51.128 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] SENT: a5 17 00 10 45 b1 00 4d 34 af 7d 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 04 04 00 28 05 25 2a 15
2024-08-19 09:15:51.635 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] RECD: a5 17 00 10 45 53 01 03 50 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 00 00 00 27 00 00 00 00 00 00 00 00 00 00 00 26 00 00 00 00 00 00 00 00 00 00 02 2b 00 03 d9 6b 00 03 f2 f5 01 a9
2024-08-19 09:15:51.636 WARNING (MainThread) [custom_components.solarman.api] [2108634189] Querying (1028 - 1067) failed. #0 [CRCError: CRC validation failed.]
2024-08-19 09:15:52.438 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] Querying attempts left: 1
2024-08-19 09:15:52.442 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] Successful reconnect
2024-08-19 09:15:52.442 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] SENT: a5 17 00 10 45 b2 00 4d 34 af 7d 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 04 04 00 28 05 25 2b 15
2024-08-19 09:15:52.914 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] RECD: a5 17 00 10 45 53 01 03 50 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 00 00 00 27 00 00 00 00 00 00 00 00 00 00 00 26 00 00 00 00 00 00 00 00 00 00 02 2b 00 03 d9 6b 00 03 f2 f5 01 a9
2024-08-19 09:15:52.914 WARNING (MainThread) [custom_components.solarman.api] [2108634189] Querying (1028 - 1067) failed. #0 [CRCError: CRC validation failed.]
2024-08-19 09:15:53.916 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] Querying attempts left: 0, aborting.
2024-08-19 09:15:53.916 DEBUG (MainThread) [custom_components.solarman.api] [2108634189] Request failed. [Previous State: Disconnected (-1)]
2024-08-19 09:15:53.916 INFO (MainThread) [custom_components.solarman.api] [2108634189] Disconnecting from 192.168.0.19:8899
2024-08-19 09:15:53.917 DEBUG (MainThread) [custom_components.solarman.coordinator] Finished fetching hwr data in 5.511 seconds (success: False)
2024-08-19 09:15:53.917 DEBUG (MainThread) [custom_components.solarman.coordinator] async_shutdown
2024-08-19 09:15:53.918 INFO (MainThread) [custom_components.solarman.api] [2108634189] Disconnecting from 192.168.0.19:8899

@davidrapan
Copy link
Owner

Excellent!

@lcavalli
Copy link
Contributor

Logs dumped, everything is working without communication errors anymore. Seems stable so far. I will try to revert back to original 10 seconds query cycle.

@davidrapan
Copy link
Owner

davidrapan commented Aug 21, 2024

That's incredible! I wouldn't guess (even in my wildest dreams) that it will be such a smooth ride! 😆

@lcavalli
Copy link
Contributor

Working well event at 10 seconds query cycle.

@davidrapan
Copy link
Owner

davidrapan commented Aug 21, 2024

I also added: feat: Ethernet Stick Logger autodetection

It's in main now: https://github.com/davidrapan/ha-solarman/blob/main/custom_components/solarman/api.py

So can you try if it actually works by toggling off that checkbox for "passthrough" in configuration?

Edit: There was a typo but I fixed it!

@davidrapan
Copy link
Owner

And I also set correctly update_intervals for your profile: refactor: HYD 3000~6000 profile update_intervals

So not all registers are requested every single time.

@davidrapan
Copy link
Owner

v24.08.21

@lcavalli
Copy link
Contributor

v24.08.21 seems to work well (without flagging the pass through option). The only issue now is that the sensor.zcs_update_interval is now around 6, not 10 as before.

@davidrapan
Copy link
Owner

davidrapan commented Aug 21, 2024

Can you enable debug and then reload integration and let it run for around 1 minute? I would just like to check the flow and update_intervals.

without flagging the pass through option

Awesome! I will remove that option from the configuration in the future if there won't be any issues. 😉

The only issue now is that the sensor.zcs_update_interval is now around 6, not 10 as before.

Yes that's the standard. Sensors like power, voltage and current are requested with interval of 5 s. The Total sensors are requested with interval of 30 s. Static values like Serial Numbers with interval of 5m. (But your profile has no static value sensors)

@lcavalli
Copy link
Contributor

@davidrapan
Copy link
Owner

davidrapan commented Aug 21, 2024

V5_ETHERNET_DETECTED and switching the mode! That's what I wanted to see! Awesome! 🎉

This is going to be OT but what are Load Power, Output Active Power, Load Active Power and Temperature sensors showing you? 🤔 In respect to "for you known" values?

@githubDante
Copy link

githubDante commented Aug 21, 2024

@davidrapan Is it possible the logger type WiFi/Ethernet to be configured through the HA interface by the user ? I'm asking because this type of detection doesn't seem quite right. Yes, the logger understands the V5 request somehow, but then it sends the response in TCP MODBUS mode by reusing the V5 Protocol header as Transaction Identifier with all other V5 attributes stripped.

Looking at logs the response is quite verbose actually and if you decide to use auto-detection you can also use this:

>>> frame = bytes.fromhex('a5 17 00 10 45 53 01 03 50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 1a 00 04 bc d2 00 08 79 9d 01 fa')
# This frame is from the last log provided by @lcavalli - frame timestamp: 2024-08-21 21:50:13.156
>>> int.from_bytes(frame[5:6], byteorder='little') == len(frame[6:])
True
>>> int.from_bytes(frame[8:9], byteorder='little') == len(frame[9:])
True
>>> 

Edit: the byteorder doesn't matter, the result will be the same with 'big'

@lcavalli
Copy link
Contributor

V5_ETHERNET_DETECTED and switching the mode! That's what I wanted to see! Awesome! 🎉

This is going to be OT but what are Load Power, Output Active Power, Load Active Power and Temperature sensors showing you? 🤔 In respect to "for you known" values?

Right now load power 390 W, output active power 0 W, load active power 0 W and temperature 47° C. All values seem correct wrt official app.

@davidrapan
Copy link
Owner

davidrapan commented Aug 21, 2024

Hey @githubDante! Yeah I noticed that it is just reflecting back the header that's why I decided to try it (check against the reflected control code) when I had to also override the method for checking the validity of the V5 frame anyway (cause otherwise it would end up with the SEQ MISMATCH).

Checking the length also came across my mind cause I remembered we did something similar with the double crc.

I just wanted to test the idea and gather some feedback cause I really was not sure if it will work across more devices.

For now it is toggleable in the configuration. 😉

Right now load power 390 W, output active power 0 W, load active power 0 W and temperature 47° C. All values seem correct wrt official app.

I was hoping that some of them are maybe redundant. 😆 Cause it has ridiculously scattered registers all over the place and it's impossible to get it under 6 requests. 😆 Let me know if you find there any redundancy in the sensors available cause it just seems strange to me, but nvm.

Yeah and what about the "names", it is correct? (for example load active power vs load power, lol)

👋

@davidrapan
Copy link
Owner

davidrapan commented Aug 21, 2024

refactor: Ethernet detection against frame length for "better" peace of mind @githubDante 😉 And really thanks for help! 🚀

@lcavalli
Copy link
Contributor

It is working stable since a couple of days now. I still have to import your last commit that removes the auto detection of ethernet data loggers, will do when the official release will be published. IMHO this issue can be closed 🙂. Thank you @davidrapan and all!

@davidrapan
Copy link
Owner

It does not remove it, just makes it more strict to what is considered as frame from ethernet logger. 😉

@Bolo92
Copy link

Bolo92 commented Aug 26, 2024

@davidrapan LSE-3 allows configuration changes using Modbus. I see write_holding_registers in the code, but I don't know enough Python to understand how to use it. Is there an example of how the code should look to write a value?

@davidrapan
Copy link
Owner

There are registered services which you can use in automations.

@gedger
Copy link

gedger commented Aug 27, 2024

See #90

@MarkoSchweizer
Copy link

MarkoSchweizer commented Nov 13, 2024

I use the Logger LSE 3 for this integration. It worked good for a few days. Two days ago the solarman smart app lost connection to my inverter, but the logger was still online, so I asked the sofar support for help. They updated the firmware of the Logger, but now the integration loses the connection after a few minutes.

WhatsApp Image 2024-11-13 at 13 16 50

Connection

Does the firmware updated cause the connection problems?

Edit: I changed the update-interval from 5 to 10s. It works stable without connection loose. Can the updated interval cause the connection problems?

Best regards
Marko

@davidrapan
Copy link
Owner

They are doing some nasty stuff in new firmwares so I honestly have no idea, maybe the logs could reveal something?

@MarkoSchweizer
Copy link

They are doing some nasty stuff in new firmwares so I honestly have no idea, maybe the logs could reveal something?

home-assistant_solarman_2024-11-13T12-16-43.792Z.log

Is this the log you need?

@davidrapan
Copy link
Owner

Yes but you need to catch that disconnect, is it in there?

@MarkoSchweizer
Copy link

Yes but you need to catch that disconnect, is it in there?

yes

@davidrapan
Copy link
Owner

davidrapan commented Nov 13, 2024

It sends a request and then it hangs for 20 seconds. After 20 seconds it timeouts in pysolarmanv5. it repeats the request hangs again and ends on 30 second (configured hard limit).

So yeah the stick just does not talk.,, Could be maybe interesting to see the traffic from the stick. But you need some setup for that so not that easy to do though. Maybe it just do interfere with communication with the servers... But this is so hostile protocol! And it's getting worse. 😆

Edit: BTW, my lsw stick also has this 20 seconds hangs! Quite often I'd say... but every other request try is always successful.

@MarkoSchweizer
Copy link

It sends a request and then it hangs for 20 seconds. After 20 seconds it timeouts in pysolarmanv5. it repeats the request hangs again and ends on 30 second (configured hard limit).

So yeah the stick just does not talk.,, Could be maybe interesting to see the traffic from the stick. But you need some setup for that so not that easy to do though. Maybe it just do interfere with communication with the servers... But this is so hostile protocol! And it's getting worse. 😆

Edit: BTW, my lsw stick also has this 20 seconds hangs! Quite often I'd say... but every other request try is always successful.

Okay, so I better ask the support to change the previous firmware version? Thanks for your help so far.

@davidrapan
Copy link
Owner

I don't think local communication it's that important for them but I guess they should do downgrade if customer asks.

And is really up to you which communication is more valuable and important to you and you want to work the best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

10 participants