timjong93 / growatt_mqtt Goto Github PK
View Code? Open in Web Editor NEWReads values from a growatt solar converter using modbus and outputs to an mqtt broker, build for esp8266(nodemcu)
Reads values from a growatt solar converter using modbus and outputs to an mqtt broker, build for esp8266(nodemcu)
While I have sketched everything as provided here. I have an error on compiling.
Can you please help out? I think it has to do with:
esp8266/Arduino#6737
Am I correct in thinking as follows:
You said the pins RX and TX needed to be used.
#2
In the code I see:
SoftwareSerial swSer(13, 15, false, 128);
Does this really mean pin RX & TX?
RX & TX are pin 1 & 3? Or am am totally on the wrong path here?
But I am not so very familiar with arduino.
My error message:
Arduino: 1.8.13 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
growatt_mqtt:54:40: error: no matching function for call to 'SoftwareSerial::SoftwareSerial(int, int, bool, int)'
SoftwareSerial swSer(13, 15, false, 128);
^
C:\Users\sander\Desktop\growatt_mqtt-master\growatt_mqtt\growatt_mqtt.ino:54:40: note: candidates are:
In file included from C:\Users\sander\Desktop\growatt_mqtt-master\growatt_mqtt\growatt_mqtt.ino:8:0:
C:\Users\sander\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\SoftwareSerial\src/SoftwareSerial.h:93:5: note: SoftwareSerial::SoftwareSerial(int8_t, int8_t, bool)
SoftwareSerial(int8_t rxPin, int8_t txPin = -1, bool invert = false);
^
C:\Users\sander\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\SoftwareSerial\src/SoftwareSerial.h:93:5: note: candidate expects 3 arguments, 4 provided
C:\Users\sander\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\SoftwareSerial\src/SoftwareSerial.h:89:5: note: SoftwareSerial::SoftwareSerial()
SoftwareSerial();
^
C:\Users\sander\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\SoftwareSerial\src/SoftwareSerial.h:89:5: note: candidate expects 0 arguments, 4 provided
Multiple libraries were found for "SoftwareSerial.h"
Used: C:\Users\sander\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\SoftwareSerial
Not used: C:\Users\sander\Documents\Arduino\libraries\EspSoftwareSerial
exit status 1
no matching function for call to 'SoftwareSerial::SoftwareSerial(int, int, bool, int)'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Hi,
I just implemented this code on a NodeMCU with RS485-TTL converter attached.
On the other end is a growatt 2000 inverter which I'm trying to read.
However, I cannot seem to get any data out. The code runs on the nodeMCU just fine (with a few tweaks, removing all the non-growatt code for one, see my forked repo for the code I use now).
I do get error codes, sometimes the code is e0, sometimes it's e2.
https://github.com/ardexa/growatt-inverters/blob/master/docs/Growatt%20PV%20Inverter%20Modbus%20RS485%20RTU%20Protocol.pdf
I only have this as documention on the data I'm supposed to get, and I can't find these error codes in here.
Is there something I'm missing or doing wrong?
Hi, can you please elaborate a bit on how to get this running? What to do where and how? I do have mqtt running so that part should be fine. Particularly interested in what to "buy" and how and what to install how and where. Thank you!
Would this be ok:
https://www.amazon.de/dp/B06Y1ZPNMS/ref=cm_sw_r_cp_apa_i_2EkbFbTK25GCP
hello, i have tried to remove the heating states / mitsubihi Registeres out of the code, becauswe i do not nee it...I was not able to do so..Can you helP?
The Sketch works perfect with my growatt....Thank you for this.... I have added a input register
publishFloat("energy/growatt/Temperatur", glueFloat(0, node.getResponseBuffer(32)));
publishFloat("energy/growatt/Faultcode", glueFloat(0, node.getResponseBuffer(40)));
Temperatur is delivering always 0... Faultcode is working....do you have an idea for that?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.