Hello all. I have a growatt solar inverter. This has a ShineWiFi-S module to read the inverter with modbus. i found https://github.com/otti/Growatt_ShineWiFi-S and converted the arduino code to esphome.
I would like to share the ESPHome yaml.
The EnergyTotal sensor is configured to get it in the energy dashboard.
I was super excited to find growatt solar support added to esphome today so I jumped on it and its deployed already on my ShineWIFI-S dongle. I’ll jave to wait until the sun comes up to see if it actually works. Until then I’d like to ask you a question:
There are some anecdotes on the internet about the inverter not having an RTC and needing a write via modbus to the registers keeping the current time for daily energy production to be counted correctly. Did you notice anything strange regarding this? Would it be OK to add this functionality (if needed)?
I understand your question and i’d like to dive into that if you want.
Know that the daily is (in our case) not important. If you have the EnergyTotal in your energy dashboard, it calculate it for you. If you don’t have it in the energy dashboard, you can make a utility sensor for daily, weekly and monthly also with the EnergyTotal. I have not that much experience with the modbus and i like to have, for example, the status text (“Normal”, “Waiting” enz). Nevertheless i like to learn, so i will look into that.
@paperPenguin I have thought about it and i think i do the timing en calculation in esphome it self. The inverter does not care when the daily resets imo. Do you agree?
@Hendrik1 With a USB to TTL adapter. When you have te PCB out of the black case, you can simply get a few header pins to connect the 4 pins and gpio 0. The manufacturer has done a great job in making the connections available.
did anyone happen to try this with a ShineWIFI-X yet?
quickly checking the code of the original project i’d assume it should work as there are no different pin definitions … but there seems to be a reconnect-function specific to the X/USB version
I have the ShineWifi-F and I’m trying to flash it without luck. TX to TX, RX to RX (and I’ve tried the reverse), 3.3V and Ground and then Gnd to GPIO0 on startup and the light is just red at the point, but I can’t get it to accept the firmware.
Any suggestions on how to get this device into flashing mode?
Have you tried holding GND and gio0 when you started flashing?
Any startup logs when not holding GND and gpio0? Even not readable so you can see the communication is correct? Can no longer remember if i have seen them.
Is it possible to measure the connections between the gpio pins and the board? It sounds to me like you have done everything i should try so it seems to me it can only be the connection between the gpio pins and the ESP chip.
I’ve tested for continuity and the gpio0 marker on the board is definately connected to gpio0, and I’ve tried tx and rx in both directions. The red light goes on by itself when I short gpio0 to ground, but no dice.
I tried what I thought was the output of SW1, but I’m not sure what that actually is. I also tried shorting the pin beside gpio0 between it and ground to ground like the esp docs say, and that doesn’t work.