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

S2-WL-ST - DataLogger Limitations #4

Closed
alienatedsec opened this issue Jan 27, 2023 · 9 comments
Closed

S2-WL-ST - DataLogger Limitations #4

alienatedsec opened this issue Jan 27, 2023 · 9 comments

Comments

@alienatedsec
Copy link

Thanks for the great work @fboundy

Has anyone experienced issues with cloud disconnecting whenever you start using an integration - no matter if this one, I mean any integration that connects to port 502?

@fboundy
Copy link
Owner

fboundy commented Jan 27, 2023 via email

@alienatedsec
Copy link
Author

alienatedsec commented Jan 29, 2023

Ok. I am currently working on Slave to Multi-Master communication and will inform you about the progress.

@alienatedsec alienatedsec changed the title S2-WL-ST - DataLogger Problems S2-WL-ST - DataLogger Limitations Jan 29, 2023
@fboundy
Copy link
Owner

fboundy commented Feb 7, 2023

I'm going to leave this as an Open issue as it is a genuine limitation which as far as I can see is hardware/firmware related. Let me know if you have any success.

@alienatedsec
Copy link
Author

After many attempts, I got a draft of the solution and waiting for some additional HW to be delivered today. Once it is built, I will report on the outcome.

@alienatedsec
Copy link
Author

alienatedsec commented Feb 9, 2023

@fboundy I have made the below set-up, which seems to be a combination of the Solis Cloud and the local Home Assistant integration.

image

Edited with the final config and included battery connection - also, made it cleaner

I no longer use the S2-WL-ST, but it works with the above and will remain as my backup datalogger. Waveshare has what I need from the Modbus TCP communication to use integrations like yours or the SolaX Modbus, which also works with Solis Hybrid inverters.

The DLS-W is enough for my reporting and to report back to Solis Cloud, especially since I made a lot of effort to integrate it with SolisMon3 and Grafana.

If you have any questions, please let me know. I am currently testing how stable it is.

@asos-timmills
Copy link

@alienatedsec Any details you can share on the hardware/configuration for the Waveshare Modbus TCP Server/Client please

@alienatedsec
Copy link
Author

alienatedsec commented Feb 20, 2023

@asos-timmills

I am using the Waveshare RS485 to ETH (B) - PoE version - the non-PoE version is described in option 1 of this guideline. There are no major differences between PoE and non-PoE devices, except for the convenience of powering those when you have multiple next in line.

The TCP Server on my diagram acts as a gateway for other devices (datalogger and HA integration), and it has a baud rate of 9600. The Modbus gateway type is Auto query storage type, and I enabled multi-host, so the datalogger queries will not create conflicts - at least that is my reasoning.

The TCP Client is pointing at the IP of the TCP Server with the same Serial config.

Both TCP Server and TCP Client have the Modbus_TCP Protocol as the Transfer Protocol

The Waveshare used for the batteries connection is the same device, but the Transfer Protocol is set to None. I use VirCom to extend its connection to COMX on my laptop, so the software can connect to batteries and monitor them. Looking into using Modbus_TCP Protocol and integrating with HA via MQTT or even setting the MQTT on the Waveshare, but that is not my priority at the moment.

I am trying different settings as had some teething issues, and I noticed that it works better when the integration (I am using SolaX integration for my Solis inverter) is pulling data more often (e.g., every 5 seconds). Also, I am playing with delays and conflict settings, so as said earlier, I am still testing how stable it is with different configuration settings.

@alienatedsec
Copy link
Author

@fboundy happy for you to move this issue to discussions or simply close it.

I also made a repo based on my experience and will keep documenting at the following address https://github.com/alienatedsec/solis-ha-modbus-cloud

@fboundy
Copy link
Owner

fboundy commented Mar 13, 2023

I think your solution may well be the only way to keep SolisCloud and Home Assistant running together. From what I can see as soon as a socket connects to the S2 on TCP port 502 SolisCloud is shut out so I have to assume that it is also using 502. The solution would be for the DataLogger to expose a secondary Modbus connection on another port which is presumably what the DLS-L does on port 8899.

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

No branches or pull requests

3 participants