Growatt-inverter.php does not work anymore
Moderator: leecollings
-
- Posts: 75
- Joined: Wednesday 22 April 2020 15:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Growatt-inverter.php does not work anymore
Hi ,
I recently got this update php script for my solar panels.
https://github.com/sincze/Domoticz/blob ... verter.php
It worked fine for months but since yesterday it is not working anymoer.
The app on the phone still works ok so the apnels also still work fine
Anyone who has the same problems ?
What alternative or utility in Domoticz do you use ??
Thanks in advance,
Rick8245
I recently got this update php script for my solar panels.
https://github.com/sincze/Domoticz/blob ... verter.php
It worked fine for months but since yesterday it is not working anymoer.
The app on the phone still works ok so the apnels also still work fine
Anyone who has the same problems ?
What alternative or utility in Domoticz do you use ??
Thanks in advance,
Rick8245
-
- Posts: 75
- Joined: Wednesday 22 April 2020 15:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt-inverter.php does not work anymore
The growaat.cookie gives this info:
# Netscape HTTP Cookie File
# https://curl.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
#HttpOnly_server.growatt.com FALSE / TRUE 0 JSESSIONID 047BC800FB00EB830ABA355BD8A89D00
server.growatt.com FALSE / FALSE 0 SERVERID 2a4c72768b4e0dec5cce3de1a0dfde3f|1695967656|1695967656
# Netscape HTTP Cookie File
# https://curl.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
#HttpOnly_server.growatt.com FALSE / TRUE 0 JSESSIONID 047BC800FB00EB830ABA355BD8A89D00
server.growatt.com FALSE / FALSE 0 SERVERID 2a4c72768b4e0dec5cce3de1a0dfde3f|1695967656|1695967656
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Growatt-inverter.php does not work anymore
There is also a plugin but that seems to have the same issue due to changes implemented by Growatt https://github.com/sincze/Domoticz-Grow ... /issues/44
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 75
- Joined: Wednesday 22 April 2020 15:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt-inverter.php does not work anymore
Thank you Waltervl.
This is exactly the issue i have (also since yesterday 09:00 AM)
Let's hope for a quick solution soon.
This is exactly the issue i have (also since yesterday 09:00 AM)
Let's hope for a quick solution soon.
-
- Posts: 195
- Joined: Wednesday 31 May 2017 16:06
- Target OS: NAS (Synology & others)
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Growatt-inverter.php does not work anymore
My suggestion is to use this application:
https://github.com/johanmeijer/grott
Several ways to run it. Native mode on a Raspberry, in Docker on the Raspberry, etc. I run it in Docker on my Synology.
You can configure it as a Proxy or as a server, so no data any more to China. And no longer available from their servers.
You can send your data as a MQTT-message by Node-Red to Domoticz. The flow is made by @Firewizard
Maybe some work to do. But very nice solution.
Pieter
https://github.com/johanmeijer/grott
Several ways to run it. Native mode on a Raspberry, in Docker on the Raspberry, etc. I run it in Docker on my Synology.
You can configure it as a Proxy or as a server, so no data any more to China. And no longer available from their servers.
You can send your data as a MQTT-message by Node-Red to Domoticz. The flow is made by @Firewizard
Code: Select all
[
{
"id": "936b12da.8ecb78",
"type": "tab",
"label": "MQTT Growatt naar Domoticz",
"disabled": false,
"info": ""
},
{
"id": "f01b6ff0.ce4878",
"type": "mqtt in",
"z": "936b12da.8ecb78",
"name": "Growatt in",
"topic": "energy/growatt",
"qos": "0",
"datatype": "json",
"broker": "7fb3e06.2d91f2",
"nl": false,
"rap": false,
"inputs": 0,
"x": 80,
"y": 120,
"wires": [
[
"9ce4ad303671b7b2"
]
]
},
{
"id": "6bed263.b6565d8",
"type": "debug",
"z": "936b12da.8ecb78",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 650,
"y": 200,
"wires": []
},
{
"id": "733eede6.d10984",
"type": "mqtt out",
"z": "936b12da.8ecb78",
"name": "To Domoticz op Syno",
"topic": "domoticz/in",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "7fb3e06.2d91f2",
"x": 660,
"y": 120,
"wires": []
},
{
"id": "9ce4ad303671b7b2",
"type": "function",
"z": "936b12da.8ecb78",
"name": "MQTT Growatt naar JSON voor Syno",
"func": "let pvstatustext;\nlet result = msg.payload;\n\nswitch (msg.payload.values.pvstatus) {\n case 0:\n pvstatustext = \"Wachten\";\n break;\n case 1:\n pvstatustext = \"Normaal\";\n break;\n case 2:\n pvstatustext = \"Storing\";\n break;\n}\n\nmsg.payload = {\"command\":\"udevice\",\"idx\":1261,\"nvalue\": result.values.pvstatus,\"svalue\": pvstatustext}\nnode.send (msg);\nnode.done;\n\nmsg.payload = { \"command\": \"udevice\", \"idx\": 2306, \"nvalue\": 0, \"svalue\": (result.values.pvpowerin/10).toString() };\nnode.send (msg);\nnode.done;\n\nmsg.payload = { \"command\": \"udevice\", \"idx\": 1263, \"nvalue\": 0, \"svalue\": (result.values.pv1voltage/10).toString() };\nnode.send (msg);\nnode.done;\n\nmsg.payload = { \"command\": \"udevice\", \"idx\": 1264, \"nvalue\": 0, \"svalue\": (result.values.pv1current/10).toString() };\nnode.send (msg);\nnode.done;\n\nmsg.payload = { \"command\": \"udevice\", \"idx\": 2315, \"nvalue\": 0, \"svalue\": (result.values.pvfrequentie/100).toString() };\nnode.send (msg);\nnode.done;\n\nmsg.payload = { \"command\": \"udevice\", \"idx\": 1266, \"nvalue\": 0, \"svalue\": (result.values.pvgridvoltage/10).toString() };\nnode.send (msg);\nnode.done;\n\nmsg.payload = { \"command\": \"udevice\", \"idx\": 1267, \"nvalue\": 0, \"svalue\": (result.values.pvgridcurrent/10).toString() };\nnode.send (msg);\nnode.done;\n\nmsg.payload = { \"command\": \"udevice\", \"idx\": 1268, \"nvalue\": 0, \"svalue\": (result.values.pvgridpower/10).toString() };\nnode.send (msg);\nnode.done;\n\nmsg.payload = { \"command\": \"udevice\", \"idx\": 1269, \"nvalue\": 0, \"svalue\": (result.values.pvtemperature/10).toString() };\nnode.send (msg);\nnode.done;\n\nmsg.payload = { \"command\": \"udevice\", \"idx\": 1272, \"nvalue\": 0, \"svalue\": (result.values.pvipmtemperature/10).toString() };\nnode.send (msg);\nnode.done;\n\nmsg.payload = { \"command\": \"udevice\", \"idx\": 1275, \"nvalue\": 0, \"svalue\": (result.values.totworktime/7200).toFixed(1) };\nnode.send (msg)\nnode.done;\n\nmsg.payload = { \"command\": \"udevice\", \"idx\": 2311, \"nvalue\": 0, \"svalue\": (result.values.pvpowerout/10).toString() + \";\" + (result.values.pvenergytotal*100).toString() };\nnode.send (msg);\nnode.done;\n\nmsg.payload = { \"command\": \"udevice\", \"idx\": 1276, \"nvalue\": 0, \"svalue\": (result.values.pvenergytotal *100).toString() };\nnode.send(msg);\nnode.done;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 350,
"y": 120,
"wires": [
[
"733eede6.d10984",
"6bed263.b6565d8"
]
]
},
{
"id": "7fb3e06.2d91f2",
"type": "mqtt-broker",
"name": "",
"broker": "192.168.1.18",
"port": "1883",
"clientid": "",
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"sessionExpiry": ""
}
]
Pieter
Last edited by PieterS on Friday 29 September 2023 12:25, edited 1 time in total.
Synology with Domoticz build (V2024.7) in Docker
-
- Posts: 251
- Joined: Sunday 11 May 2014 11:09
- Target OS: Windows
- Domoticz version: 2023.1+
- Location: NL
- Contact:
Re: Growatt-inverter.php does not work anymore
I am getting a 403 currently.
Searching the web it looks like i am not alone. Its reported from everywhere (the servers get sometimes unstable)
Searching the web it looks like i am not alone. Its reported from everywhere (the servers get sometimes unstable)
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
-
- Posts: 195
- Joined: Wednesday 31 May 2017 16:06
- Target OS: NAS (Synology & others)
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Growatt-inverter.php does not work anymore
My only problem today is lack of sunshine..
Synology with Domoticz build (V2024.7) in Docker
-
- Posts: 75
- Joined: Wednesday 22 April 2020 15:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt-inverter.php does not work anymore
Still does not work,
Does anybody know an alternative ??
Does anybody know an alternative ??
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Growatt-inverter.php does not work anymore
If you search github on Growatt then it seems a lot of projects have the same issue. Some suggest that it is a failure on the Growatt server. So you have to wait for someone (or Growatt) to be able to fix it. Or use the grott application that does not use the Growatt server but is also not that easy to install.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 75
- Joined: Wednesday 22 April 2020 15:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt-inverter.php does not work anymore
Thanks Waltervl.
Do you have link of the grott application ? At least I can take a look at it.
Does it work in Domoticz ? if not I will wait for a solution .
I now use the gui and the app on my phone. they still work ok but Domoticz is not updated
Do you have link of the grott application ? At least I can take a look at it.
Does it work in Domoticz ? if not I will wait for a solution .
I now use the gui and the app on my phone. they still work ok but Domoticz is not updated
-
- Posts: 16
- Joined: Monday 25 September 2017 12:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt-inverter.php does not work anymore
https://github.com/johanmeijer/grott
I use it for more than 2 years with a self-coded extension to interface with Domoticz via http but you can alo use MQTT.
I use it for more than 2 years with a self-coded extension to interface with Domoticz via http but you can alo use MQTT.
-
- Posts: 195
- Joined: Wednesday 31 May 2017 16:06
- Target OS: NAS (Synology & others)
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Growatt-inverter.php does not work anymore
This is the result of the data from the Growatt inverter in Domoticz.
My inverter is a single string and single fase.
No idea what info you have from that inverter in Domoticz. You did not tell much about your setup.
But there is some common info in my message above.
My inverter is a single string and single fase.
No idea what info you have from that inverter in Domoticz. You did not tell much about your setup.
But there is some common info in my message above.
Synology with Domoticz build (V2024.7) in Docker
-
- Posts: 1
- Joined: Monday 02 October 2023 21:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt inverter php does not work anymore
I hope it will be solved soon.
Until then, I use a self-made script to enter the kwH values manually.
I run it at least 1 time in the evening.
You must use the cumulative kWh value that your ShinPhone app shows.
1. Login to Domoticz via SSH
2. Install mosquitto including mosquitto_pub
3, Create a script called: updateSun (with vi or nano)
Copy the lines below into the file, modify the idx value as descripbed in the comment line and save the file.
Make it executable: chmod +x ./updateSun
Run it: ./updateSun 123456 (example, you can use decimals using a dot)
#################################
#set -x
Sun=`echo " $1 * 1000 "| bc`
echo Sun $Sun
# Replace the idx value in line below with the idx value of your "SUN Inverter (kWh)" device
C1='{"idx": 25, "svalue": "100;'
C2=$Sun
C3='", "parse" : false }'
COMMANDO=$C1$C2$C3
/usr/bin/mosquitto_pub -h localhost -p 1883 -m "$COMMANDO" -t domoticz/in
#################################
Until then, I use a self-made script to enter the kwH values manually.
I run it at least 1 time in the evening.
You must use the cumulative kWh value that your ShinPhone app shows.
1. Login to Domoticz via SSH
2. Install mosquitto including mosquitto_pub
3, Create a script called: updateSun (with vi or nano)
Copy the lines below into the file, modify the idx value as descripbed in the comment line and save the file.
Make it executable: chmod +x ./updateSun
Run it: ./updateSun 123456 (example, you can use decimals using a dot)
#################################
#set -x
Sun=`echo " $1 * 1000 "| bc`
echo Sun $Sun
# Replace the idx value in line below with the idx value of your "SUN Inverter (kWh)" device
C1='{"idx": 25, "svalue": "100;'
C2=$Sun
C3='", "parse" : false }'
COMMANDO=$C1$C2$C3
/usr/bin/mosquitto_pub -h localhost -p 1883 -m "$COMMANDO" -t domoticz/in
#################################
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Growatt-inverter.php does not work anymore
Hmm, it is easier to use an html API cal (Url)
See also wiki for more info https://www.domoticz.com/wiki/Domoticz_ ... counter.29
Multiply the Energy kWh with 1000 as it is stored in Domoticz in Wh.
Code: Select all
http://DomoticzIP:Port/json.htm?type=command¶m=udevice&idx=IDX&nvalue=0&svalue=POWER;ENERGY
Multiply the Energy kWh with 1000 as it is stored in Domoticz in Wh.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 75
- Joined: Wednesday 22 April 2020 15:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt-inverter.php does not work anymore
Thank you guys for helping me out on this.
-
- Posts: 75
- Joined: Wednesday 22 April 2020 15:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt-inverter.php does not work anymore
hi phkpr,
If I use your script I get this error:
(standard_in) 1: syntax error
Sun
Connection error: Connection Refused: not authorised.
Error: The connection was refused.
regards, Richard
If I use your script I get this error:
(standard_in) 1: syntax error
Sun
Connection error: Connection Refused: not authorised.
Error: The connection was refused.
regards, Richard
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Growatt-inverter.php does not work anymore
as mentioned it is far more easy to use the URL as you can run it from any system in your network.
for POWER fill in 0.
So for example
cumulative kWh is 123254
for POWER fill in 0.
So for example
cumulative kWh is 123254
Code: Select all
http://192.1.1.25:808/json.htm?type=command¶m=udevice&idx=123&nvalue=0&svalue=0;123254000
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 75
- Joined: Wednesday 22 April 2020 15:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Growatt-inverter.php does not work anymore
Ho Waltervl
I tried that json lin also but i does not really update the counters.
If I insert svalue=0;1122223 is updates the counters to 0 and 1122223
If I insert svalue=300;1122223 is updates the counters to 300 and 1122223
So this deos not seem to be the real values or do i something wrong
I tried that json lin also but i does not really update the counters.
If I insert svalue=0;1122223 is updates the counters to 0 and 1122223
If I insert svalue=300;1122223 is updates the counters to 300 and 1122223
So this deos not seem to be the real values or do i something wrong
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Growatt-inverter.php does not work anymore
The API call depends somewhaT on the type of device you are using.
From the php script is should be a Virtual Sensor -> Electric (instant+Counter), the API link is created for this device.
You have to multiply the value you read from the app with 1000. So in the app cumulative kWh is 1122223 you should send 1122223000
And you should not send fake values here else you get issues in reporting the correct data.
POWER is current Watt (but only used to display, not used for calculation)
Energy = cumulative kWh*1000 and is used to calculate the daily usage.
From the php script is should be a Virtual Sensor -> Electric (instant+Counter), the API link is created for this device.
You have to multiply the value you read from the app with 1000. So in the app cumulative kWh is 1122223 you should send 1122223000
And you should not send fake values here else you get issues in reporting the correct data.
POWER is current Watt (but only used to display, not used for calculation)
Energy = cumulative kWh*1000 and is used to calculate the daily usage.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 5
- Joined: Thursday 10 November 2016 16:57
- Target OS: Linux
- Domoticz version:
- Contact:
For who is interested:
I have made the switch now to the grott implementation. (on git hub) That worked directly without problems.
But I didn't want to use mqtt, so i made a simple little extension that only updates my energy counters in domoticz. (that is all i need)
The example extension for this can be found under: pull request 433 in the github grott repo.
I have made the switch now to the grott implementation. (on git hub) That worked directly without problems.
But I didn't want to use mqtt, so i made a simple little extension that only updates my energy counters in domoticz. (that is all i need)
The example extension for this can be found under: pull request 433 in the github grott repo.
Who is online
Users browsing this forum: No registered users and 1 guest