Page 1 of 1

solar panel readout for delta inverters (my delta solar cloud)

Posted: Wednesday 21 October 2020 10:22
by fzoet
Script to read Delta solar power inverter data into domoticz.

So called "smart" energy meters are pretty dumb: as soon as you install solar panels they cannot show your actual power usage. P1 meters only show energy consumption from the grid, or delivery to the grid. They do not show the energy consumption in the house.
So they do not give any clue about possible power savings, the actual return on investment of the solar panels, or the percentage of solar power that the house uses related to grid power. Normal things a home owner wants to know to further decrease his energy consumption or to decide on extra solar panels.

To calculate the actual power usage, the power provided by the solar panels can be fed into domoticz. There are multiple ways: some cost money, some don't. Without any additional hardware investments it can be done by downloading the inverter data from the inverter website.

Robothuis has an article on this but this is limited to Goodwe, SMA (SunnyPortal), Growatt and Omnik. See https://robothuis.nl/2020/01/13/zonnepa ... -domoticz/ (in Dutch). Sándor Incze has done the programming for that, see https://github.com/sincze/Domoticz
I have an inverter from Delta though.

How can we adapt these scripts for a delta inverter / the my delta solar cloud website? (https://mydeltasolar.deltaww.com/)

Re: solar panel readout for delta inverters (my delta solar cloud)

Posted: Monday 26 October 2020 18:03
by sincze
Let me give it a try ;-)

Re: solar panel readout for delta inverters (my delta solar cloud)

Posted: Monday 26 October 2020 20:29
by sincze
You have to wait for tomorrow and hope for some sun. :D
Delta.PNG
Delta.PNG (14.39 KiB) Viewed 2889 times
Created the script delta_inverter.php and added that to my crontab.

Code: Select all

sudo nano /etc/crontab
added:

Code: Select all

*/5 * * * *   root    /usr/bin/nice -n20 php /home/pi/domoticz/scripts/pass2php/delta_inverter.php /dev/null 2>&1
https://github.com/sincze/Domoticz/blob ... verter.php

Re: solar panel readout for delta inverters (my delta solar cloud)

Posted: Tuesday 27 October 2020 17:50
by fzoet
@sincze Thanks! Loved the way you support this!
Next steps are calculating actual power usage, solar power percentage, and Return on Investment.

Re: solar panel readout for delta inverters (my delta solar cloud)

Posted: Wednesday 28 October 2020 15:06
by fzoet
Script was updated to solve this error.

Got some nice readings today but then the counter stopped at 13:05 for no immediate reason. No idea what the issue is.
Manually ran the script and get only the following feedback in domoticz log.

Code: Select all

2020-10-28 15:07:49.701 Status: --->> Cookie File: /var/tmp/Delta.cookie exists!
2020-10-28 15:07:49.714 Status: --->> Cookie File: /var/tmp/Delta.cookie NOT writable!
2020-10-28 15:07:49.734 Status: --->> Login OK to proceed ->
After this, no more outputs. And the dummy still is not updated.

Re: solar panel readout for delta inverters (my delta solar cloud)

Posted: Wednesday 28 October 2020 15:52
by sincze
It's running changed the script slightly.
Delta2.PNG
Delta2.PNG (17.41 KiB) Viewed 2858 times

Re: solar panel readout for delta inverters (my delta solar cloud)

Posted: Monday 25 January 2021 16:46
by pascalspits
I also deployed the script to read my solar values, working well but it is reporting the total amount in the daily amount ... small bug ?

Re: solar panel readout for delta inverters (my delta solar cloud)

Posted: Monday 25 January 2021 17:01
by sincze
Don't have the inverter myself but total amount should be calculated with all the time.
Domoticz calculates the daily amount.
Usually it's an incremental counter only so does not like re-setting it to 0, Domoticz does that for you..

Re: solar panel readout for delta inverters (my delta solar cloud)

Posted: Monday 25 January 2021 17:04
by pascalspits
oke, I'll let it do it's thing for a few days and see what happens ...

Re: solar panel readout for delta inverters (my delta solar cloud)

Posted: Monday 25 January 2021 17:31
by pascalspits
I have 2 converters on the Growatt dashboard ... is it possible to read the 2 individual values instaed of the overall total ?

Re: solar panel readout for delta inverters (my delta solar cloud)

Posted: Monday 25 January 2021 18:42
by sincze
Growatt or Delta ? ;-)
Ofcourse if data is available the script can be tweaked to fill multiple devices in Domoticz. 1 per inverter for example.

Re: solar panel readout for delta inverters (my delta solar cloud)

Posted: Monday 25 January 2021 19:45
by pascalspits
growatt

Re: solar panel readout for delta inverters (my delta solar cloud)

Posted: Monday 25 January 2021 20:49
by sincze
ok, but why posting Growatt in a Delta thread (Script to read *Delta* solar power inverter data into Domoticz.)

Re: solar panel readout for delta inverters (my delta solar cloud)

Posted: Monday 25 January 2021 21:59
by pascalspits
"Robothuis has an article on this ...

Zelf heb ik een Growatt inverter, type 4200 en daarmee heb ik het script getest. Wat je hiervoor allereerst nodig hebt, is een inlogcode voor de Shinephone app of website van Growatt. Sommige leveranciers of verhuurders van zonnepanelen bieden je een eigen app aan als laag over de Growatt server heen, waarbij je dus andere inloggegevens krijgt. In dat geval moet je echt even vragen naar de juiste gegevens; het gaat om jouw data en die mag niet geheim worden gehouden.

Vervolgens download je het script growatt-inverter.php. Open dit bestand in een een tekstverwerker of code editor. Je zult zien dat in het commentaar al instructies staan om dit te installeren. Zo moet er in Domoticz zelf iets worden aangepast, maar ook rechtstreeks op de Raspberry Pi. Bovendien moet een aantal gegevens in het script zelf worden ingevuld. Omdat er wel wat valkuilen zijn (weet ik uit ervaring), lopen we de instructies een voor een door."