Python Plugin: Solar Inverter via TCP Shine v2 protocol (Growatt, Gaia)

Python and python framework
devros
Posts: 78
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: Solar Inverter via TCP Shine v2 protocol (Growatt, Gaia)

Post by devros » Tuesday 27 June 2017 9:20

hello, thanks
tried, but have this error (waiting for a connection and after 10 +/- seconds error)
im using script with sudo command

waiting for a connection
error setting server socket to listen mode
^CTraceback (most recent call last):
File "mobdus.py", line 1107, in <module>
time.sleep(2)

devros
Posts: 78
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: Solar Inverter via TCP Shine v2 protocol (Growatt, Gaia)

Post by devros » Thursday 06 July 2017 19:25

hi found this,
it looks that Godwee is using same protocol to comunicate... (every 5 minutes, no open port) and its not modbus... weird

http://www.domoticz.com/forum/viewtopic.php?t=6714

Ferno2000
Posts: 7
Joined: Friday 08 January 2016 17:22
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin: Solar Inverter via TCP Shine v2 protocol (Growatt, Gaia)

Post by Ferno2000 » Sunday 30 July 2017 0:17

Hi I am very interested in what you are doing here, I myself used this construct here:

https://www.vromans.org/johan/software/sw_growatt.html

And managed to get it working, now just have to figure out how to get the data it generates into domoticz.
maybe going to the stuff on this site helps you getting on the right track.

zoriander
Posts: 1
Joined: Thursday 31 August 2017 8:16
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: Solar Inverter via TCP Shine v2 protocol (Growatt, Gaia)

Post by zoriander » Thursday 31 August 2017 8:19

Ferno2000 wrote:
Sunday 30 July 2017 0:17
Hi I am very interested in what you are doing here, I myself used this construct here:

https://www.vromans.org/johan/software/sw_growatt.html

And managed to get it working, now just have to figure out how to get the data it generates into domoticz.
maybe going to the stuff on this site helps you getting on the right track.
I am trying to do the same, however I haven't gotten the perl script to work nicely. Did you do any configurations on the growatt?

pwhooftman
Posts: 152
Joined: Monday 11 November 2013 19:04
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin: Solar Inverter via TCP Shine v2 protocol (Growatt, Gaia)

Post by pwhooftman » Friday 27 October 2017 22:09

It has been quite a while since i have been thinkering with this. I'm using a similar approach to vromas for a few years now: the growatt stick is sending the data to my Synology NAS. My Sunology passes the traffic trough to the Growatt servers, but its also captures traffic to data files, which are broken down to energy produced etc, and collected into Domoticz. Domoticz sends it to PvOutput through the PVOutput plugin.

I have been logging the RS232 traffic and found the inverter is sending live data to the Growatt wifi stick continiously (actual power, energy produces that day, energy total, etc). Its the wifi stick that sends data to the Growatt Server every 5 minutes.

I really would like to gather live data (especially live actual power) so i can calculate energy consumption in my house real time, by substracting power return to the grid from the solar power produced, but i never succeeded firing commands to the wifi stick to get live values. I once managed to break down the serial stick and locate power values etc at certain locations in the string, but after rebooting the wifi stick, those locations changed again so i gave up.

I'm really interested if a solution comes up where traffic to Growatt servers remains intact but extracting live traffic is possible also.
Domoticz v 1.16xx
1X RFXtrx433 USB 433.92MHz Transceiver Firmware version: 71
1X Synology Nas DS412+ DSM 4.3 (2Gb RAM mod)

Ferno2000
Posts: 7
Joined: Friday 08 January 2016 17:22
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin: Solar Inverter via TCP Shine v2 protocol (Growatt, Gaia)

Post by Ferno2000 » Sunday 29 October 2017 22:02

zoriander wrote:
Thursday 31 August 2017 8:19
Ferno2000 wrote:
Sunday 30 July 2017 0:17
Hi I am very interested in what you are doing here, I myself used this construct here:

https://www.vromans.org/johan/software/sw_growatt.html

And managed to get it working, now just have to figure out how to get the data it generates into domoticz.
maybe going to the stuff on this site helps you getting on the right track.
I am trying to do the same, however I haven't gotten the perl script to work nicely. Did you do any configurations on the growatt?
Hi,

Yes, you have to configure the ip address of the host running the perl webserver made by Johan as the growatt server. The perlproxy will relay the info to the actual girowatt shine server after scraping the info to a DAT file.
There is a script included to convert the DAT file to a csv. I managed to create a rudimentary script that greps and awks the value a I need and send it to a influx DB.
I still have to do a lot of work on it but I have a start. The same approach could be used to trigger a virtual switch in domoticz.

Post Reply

Who is online

Users browsing this forum: Aandegrens, Google [Bot] and 5 guests