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

Moderator: leecollings

Post Reply
fzoet
Posts: 10
Joined: Saturday 10 October 2020 16:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands
Contact:

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

Post 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/)
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

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

Post by sincze »

Let me give it a try ;-)
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

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

Post by sincze »

You have to wait for tomorrow and hope for some sun. :D
Delta.PNG
Delta.PNG (14.39 KiB) Viewed 2885 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
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
fzoet
Posts: 10
Joined: Saturday 10 October 2020 16:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands
Contact:

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

Post by fzoet »

@sincze Thanks! Loved the way you support this!
Next steps are calculating actual power usage, solar power percentage, and Return on Investment.
fzoet
Posts: 10
Joined: Saturday 10 October 2020 16:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands
Contact:

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

Post 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.
Last edited by fzoet on Friday 30 October 2020 17:14, edited 1 time in total.
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

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

Post by sincze »

It's running changed the script slightly.
Delta2.PNG
Delta2.PNG (17.41 KiB) Viewed 2854 times
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
pascalspits
Posts: 88
Joined: Tuesday 24 February 2015 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

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

Post 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 ?
RasPi2 - Aeotec Z-Stick S2 - Fibaro multisensors - Fibaro RGBW dimmers - ETH08 relais boards
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

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

Post 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..
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
pascalspits
Posts: 88
Joined: Tuesday 24 February 2015 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

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

Post by pascalspits »

oke, I'll let it do it's thing for a few days and see what happens ...
RasPi2 - Aeotec Z-Stick S2 - Fibaro multisensors - Fibaro RGBW dimmers - ETH08 relais boards
pascalspits
Posts: 88
Joined: Tuesday 24 February 2015 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

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

Post by pascalspits »

I have 2 converters on the Growatt dashboard ... is it possible to read the 2 individual values instaed of the overall total ?
Attachments
Knipsel.JPG
Knipsel.JPG (71.79 KiB) Viewed 2693 times
RasPi2 - Aeotec Z-Stick S2 - Fibaro multisensors - Fibaro RGBW dimmers - ETH08 relais boards
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

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

Post 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.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
pascalspits
Posts: 88
Joined: Tuesday 24 February 2015 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

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

Post by pascalspits »

growatt
RasPi2 - Aeotec Z-Stick S2 - Fibaro multisensors - Fibaro RGBW dimmers - ETH08 relais boards
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

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

Post by sincze »

ok, but why posting Growatt in a Delta thread (Script to read *Delta* solar power inverter data into Domoticz.)
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
pascalspits
Posts: 88
Joined: Tuesday 24 February 2015 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

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

Post 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."
RasPi2 - Aeotec Z-Stick S2 - Fibaro multisensors - Fibaro RGBW dimmers - ETH08 relais boards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest