You were supposed to see this: https://github.com/pawelka/sofarsolar_esp_rs485_logger.
I will try to collect all data acquisition methods in the next post.
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamFrankAB wrote:Unfortunately, I did not guess that you can send data from ESP to MQTT on another machine
starob wrote:FrankAB wrote:
A non-invasive method based on the so-called "scraping":
1. Reading the status page and reading the values from the html code.
The amount of information read in this method is poor. Apparently this is illegal.
2. Capturing data sent to the solarmanpv.com server
The factory logger will send data every 5 minutes to the server whose address is permanently stored in the device.
The trick is to redirect the data to another own server and decode it.
This can be done, for example, by having an appropriate router by creating a redirection rule.
I found many solutions based on this method on the net.
3. People say that you can set any additional server address to which data will be sent.
There is such an option in my logger, but I haven't been able to observe any traffic on this port.
Depending on your purpose and the equipment you have, it will be easier to answer specific questions.
starob wrote:In the description ...../pawelka/sofarsolar esp rs485 logger you can see the logger configuration page - you fill it with your data and according to this they go to the MQTT broker (you probably have Mosquitto?)
FrankAB wrote:I tested a ready Eth - RS485 adapter called Elfin-EE11A.
FrankAB wrote:I changed the concept of how the system works and I don't use EE11A anymore because it didn't want to work when Slave is on Eth side.
The master is Micrologix; Node-RED is a Slave for it and also listens to RS485 communication with the inverter and meter.
Node-RED puts the received data into MQTT; throwing them into SQL shouldn't be a big problem.
FrankAB wrote:If Node-RED is the Eth Master, EE11A works fine.
OktawiuszZ wrote:So what won't it work for me? Damn, I've already ordered the module :/ When a man gets hot for something, it's a massacre
OktawiuszZ wrote:I need to take a closer look at this MQTT, if it can be used locally and not on-line then maybe I'll get around to it.
starob wrote:MQTT works locally when you set up your own server. Write something more, what do you want to do with these measurements?
OktawiuszZ wrote:I have a server at home, mainly as an internet gateway, NAS and WWW + SQL server ...
OktawiuszZ wrote:What do I want to achieve? Mainly collect measurement data for statistical purposes on SQL server
OktawiuszZ wrote:I want to query also other devices, sensors and counters
OktawiuszZ wrote:electricity with a bit of luck, because they gave me some Chinese S34U18 with a plugged P1 port and the water one if they exchange it for a smart one).
starob wrote:OktawiuszZ wrote:I have a server at home, mainly as an internet gateway, NAS and WWW SQL server ...
Depending on what it "stands" you can find a way to install additional MQTT on your server, e.g. Mosquitto as an additional service.
starob wrote:OktawiuszZ wrote:What do I want to achieve? Mainly collect measurement data for statistical purposes on SQL server
However, you don't need MQTT for this - unless you want to "play around".
The easiest way to do it is by adding to the Node-Red server. On the one hand, NR would deal with Modbus communication with the inverter, process the received data and place it in SQL.
However, in my opinion, a set of Node-Red, Grafana and Influx is more suitable for this task.
The advantage of NR is that it has a UI panel for visualizing states and read parameters can be accessed via a browser and the ability to create automation.
starob wrote:OktawiuszZ wrote:electricity with a bit of luck, because they gave me some Chinese S34U18 with a plugged P1 port and the water one if they exchange it for a smart one).
I didn't deal with this, but somewhere in the network I flashed that they read the toto using the DVBT SDR tuner. You have to search on your own and create your own topic in "Home Automation".
FrankAB wrote:I tested a ready Eth - RS485 adapter called Elfin-EE11A.
starob wrote:I have port 503 - set it properly
Check the status to find out if the problem is in Eth or RS485.
IP set means someone is connected
Michalux wrote:If anyone is interested, I managed to get to Sofar (K-TLX) by IP via the WiFi module (LSW-3).
The solution allows you to download all data normally sent to the cloud and made available on the MODBUS bus.
If necessary, it can also send them to the MQTT server.
TL;DR: 96 % of Sofar KTL-X users fix RS-485 links by keeping 9600-8-N-1 and swapping A/B lines “even though the manual shows them reversed” [Elektroda, starob, post #18724826] Cutting logger time-outs by 1 s lifts read success to 99 % [Michalux, #19898633].
Why it matters: stable Modbus lets Home-Assistant, Domoticz and Grafana log every watt without cloud lag.
• Default Modbus RTU: 9600 bps, 8-N-1, ID 1 [Elektroda, starob, post #18724826] • LSW-3 / LSE-3 TCP port: 8899; single-slave only [Elektroda, Emi_B, post #20139208] • Power-limit register 0x9000 (1 % – 100 %) FC-06 [spin722, #20130871] • G3 series starts data at 0x0484; G2 at 0x0000 [Nedel124, #19904181] • Safe inverter shutdown: ≤ 70 °C internal temp; power derates above 70 °C [Elektroda, xury, post #19902740]
force_update: true in sensor config [Elektroda, GP007, post #21012034]