SolarEdge individual optimizer dzVents script
Moderator: leecollings
-
- Posts: 27
- Joined: Friday 15 January 2016 14:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
SolarEdge individual optimizer dzVents script
Another way to request data from the SolarEdge inverter.
Why:
- This also requests the individual optimizers data
it is an pure dzVents script that polls layout data from the website. It does not use the official API calls. Instead the API key, it uses the username, password and siteid to get the data. It's the result of one evening hobby. It works, no fancy stuff.
https://github.com/RDols/dzRequestSolarInfo
Regards,
Richard
Why:
- This also requests the individual optimizers data
it is an pure dzVents script that polls layout data from the website. It does not use the official API calls. Instead the API key, it uses the username, password and siteid to get the data. It's the result of one evening hobby. It works, no fancy stuff.
https://github.com/RDols/dzRequestSolarInfo
Regards,
Richard
-
- Posts: 241
- Joined: Tuesday 16 May 2017 13:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: The Neterlands
- Contact:
Re: SolarEdge individual optimizer dzVents script
great project!
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
- McMelloW
- Posts: 427
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
Re: SolarEdge individual optimizer dzVents script
Hello Richard,
What is the request you sending to the SolarEdge site?
The site is only updated every 15 minutes
What is the request you sending to the SolarEdge site?
The site is only updated every 15 minutes
Greetings McMelloW
-
- Posts: 27
- Joined: Friday 15 January 2016 14:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: SolarEdge individual optimizer dzVents script
It does an http get on:
https://monitoring.solaredge.com/solare ... ut/logical
XXXXXXX = Your siteId
It uses basic HTTP authentication. To test, you can login to your regular monitoring page, do a request to above URL (replace XXXXXXX with your siteid) and get JSON info.
It updates more often then 15 minutes, but it's dependend on how often the inverter (and optimizers) update there data. for the optimizers its close to every 5 minutes.
https://monitoring.solaredge.com/solare ... ut/logical
XXXXXXX = Your siteId
It uses basic HTTP authentication. To test, you can login to your regular monitoring page, do a request to above URL (replace XXXXXXX with your siteid) and get JSON info.
It updates more often then 15 minutes, but it's dependend on how often the inverter (and optimizers) update there data. for the optimizers its close to every 5 minutes.
- McMelloW
- Posts: 427
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
Re: SolarEdge individual optimizer dzVents script
Richard, thanks very much.Dols wrote: ↑Tuesday 19 May 2020 23:27 It does an http get on:
https://monitoring.solaredge.com/solare ... ut/logical
XXXXXXX = Your siteId
It uses basic HTTP authentication. To test, you can login to your regular monitoring page, do a request to above URL (replace XXXXXXX with your siteid) and get JSON info.
It updates more often then 15 minutes, but it's dependend on how often the inverter (and optimizers) update there data. for the optimizers its close to every 5 minutes.
A 5 minutes interval is not bad. The monitor page is updated every 15 minutes.
This generates a lot of data. I will look into this.
Greetings McMelloW
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: SolarEdge individual optimizer dzVents script
Hi Richard
Well done. Will give it a go this long weekend.
Question How do you display the data ?
I was thinking Grafana?
Well done. Will give it a go this long weekend.
Question How do you display the data ?
I was thinking Grafana?
-
- Posts: 331
- Joined: Sunday 22 February 2015 12:19
- Target OS: Linux
- Domoticz version: 2020.x
- Location: Netherlands
- Contact:
Re: SolarEdge individual optimizer dzVents script
That would be nice. Although then it would be more logical to perhaps skip the use of Domoticz altogether and directly post it to a database like Influx (or to MQTT and then to Influx).
- Eddiever
- Posts: 105
- Joined: Thursday 27 April 2017 20:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: The Netherlands (Hoogeveen)
- Contact:
Re: SolarEdge individual optimizer dzVents script
Maybe I am just a bit stupid. But if I use your script I get:
Solaredge_optimizers.lua:86: attempt to call field 'toBase64' (a nil value)
I triple checked my account data in line 81 - 83. They are correct. What am I overlooking? Manually trying the http get works and I see a lot of data.
Solaredge_optimizers.lua:86: attempt to call field 'toBase64' (a nil value)
I triple checked my account data in line 81 - 83. They are correct. What am I overlooking? Manually trying the http get works and I see a lot of data.
Code: Select all
80 local function RequestSolardEdge(domoticz)
81 local username = "my username"
82 local password = "my password"
83 local siteID = "my siteID"
84
85 local authorization = string.format("%s:%s", username, password)
86 authorization = string.format("Basic %s", domoticz.utils.toBase64(authorization))
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: SolarEdge individual optimizer dzVents script
I implemented the toBase64 function in dzVents 2.5.2 (domoticz V4.11543). If you are on an older version this script will not work.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
- Eddiever
- Posts: 105
- Joined: Thursday 27 April 2017 20:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: The Netherlands (Hoogeveen)
- Contact:
Re: SolarEdge individual optimizer dzVents script
Thanks, I do have a older version on my Synology. Going to upgrade right away. Due to the lack of sun I don't suppose it wil work right away
- Eddiever
- Posts: 105
- Joined: Thursday 27 April 2017 20:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: The Netherlands (Hoogeveen)
- Contact:
Re: SolarEdge individual optimizer dzVents script
That did it! It works:
Code: Select all
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Inverter Inverter 1 = 13508.00 Wh
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Optimizer Panel 1.1.1 = 916.00 Wh
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Optimizer Panel 1.1.2 = 983.00 Wh
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Optimizer Panel 1.1.3 = 968.00 Wh
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Optimizer Panel 1.1.4 = 1000.50 Wh
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Optimizer Panel 1.1.5 = 1007.75 Wh
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Optimizer Panel 1.1.6 = 1009.75 Wh
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Optimizer Panel 1.1.7 = 1018.00 Wh
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Optimizer Panel 1.1.8 = 959.75 Wh
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Optimizer Panel 1.1.9 = 880.75 Wh
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Optimizer Panel 1.1.10 = 1002.75 Wh
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Optimizer Panel 1.1.11 = 1007.00 Wh
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Optimizer Panel 1.1.12 = 1011.00 Wh
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Optimizer Panel 1.1.13 = 987.75 Wh
2020-05-20 22:01:01.843 Status: dzVents: dzRequestSolarInfo : Optimizer Panel 1.1.14 = 1000.25 Wh
- McMelloW
- Posts: 427
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
Re: SolarEdge individual optimizer dzVents script
I find it still a bit frustrating to get all these data from the SolarEdge website, while it is all present in your SolarEdge Inverter.Dols wrote: ↑Monday 18 May 2020 12:55 Another way to request data from the SolarEdge inverter.
Why:
- This also requests the individual optimizers data
it is an pure dzVents script that polls layout data from the website. It does not use the official API calls. Instead the API key, it uses the username, password and siteid to get the data. It's the result of one evening hobby. It works, no fancy stuff.
https://github.com/RDols/dzRequestSolarInfo
Regards,
Richard
Your inverter is sending it to the SolarEdge website and the dzVents Script is getting back from the SolarEdge website to you home.
Greetings McMelloW
- McMelloW
- Posts: 427
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
Re: SolarEdge individual optimizer dzVents script
With the use of dzVent, you need Domoticz. dzvents is a part of Domoticz
Greetings McMelloW
-
- Posts: 164
- Joined: Sunday 26 April 2020 5:27
- Target OS: Linux
- Domoticz version: 2022.1
- Location: Netherlands
- Contact:
Re: SolarEdge individual optimizer dzVents script
This looks interesting. We have two inverters here. Will give it a try next week.
Hue | Zigbee2Mqtt | MQTT | P1 | Xiaomi | RFXCom | Modbus | Qlima | Solaredge
TP-Link | Plugwise | Thermosmart | Node-Red | Grafana | Master and 5 remote servers
TP-Link | Plugwise | Thermosmart | Node-Red | Grafana | Master and 5 remote servers
-
- Posts: 4
- Joined: Thursday 01 August 2019 20:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v2020.2
- Location: Nederland
- Contact:
Re: SolarEdge individual optimizer dzVents script
Interesting. Going to check it out this weekend.
-
- Posts: 4
- Joined: Thursday 01 August 2019 20:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v2020.2
- Location: Nederland
- Contact:
Re: SolarEdge individual optimizer dzVents script
To find out the name of the panels took some time.
The name of the optimizer in my case is "Panel 1.1.1"
as the site of my inverter
"name":"Module 1.1.1","displayName":"1.1.1"
The name of the optimizer in my case is "Panel 1.1.1"
as the site of my inverter
"name":"Module 1.1.1","displayName":"1.1.1"
- Spoiler: show
- McMelloW
- Posts: 427
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
Re: SolarEdge individual optimizer dzVents script
Hello Richard,
This works great, well done.
Here is my log output.
This works great, well done.
Here is my log output.
Code: Select all
2020-05-21 21:05:01.224 Status: dzVents: dzRequestSolarInfo : -=[ Start HTTP Request]=======================================
2020-05-21 21:05:01.225 Status: dzVents: dzRequestSolarInfo : -=[ End ]=====================================================
2020-05-21 21:05:05.659 Status: dzVents: dzRequestSolarInfo : -=[ Start HTTP Response ]=====================================
2020-05-21 21:05:05.660 Status: dzVents: dzRequestSolarInfo : Inverter "Inverter 1" Energy = 22976.00 Wh Current Power = 39.91 W
2020-05-21 21:05:05.660 Status: dzVents: dzRequestSolarInfo : to monitor create an dummy device type="Electric (Instant+Counter) name="Inverter 1"
2020-05-21 21:05:05.660 Status: dzVents: dzRequestSolarInfo : String "String 1.1" Energy = 22926.25 Wh Current Power = 0.00 W
2020-05-21 21:05:05.661 Status: dzVents: dzRequestSolarInfo : to monitor create an dummy device type="Electric (Instant+Counter) name="String 1.1"
2020-05-21 21:05:05.661 Status: dzVents: dzRequestSolarInfo : Optimizer "Panel 1.1.1" Energy = 1944.50 Wh Current Power = 13.23 W
2020-05-21 21:05:05.661 Status: dzVents: dzRequestSolarInfo : to monitor create an dummy device type="Electric (Instant+Counter) name="Panel 1.1.1"
2020-05-21 21:05:05.661 Status: dzVents: dzRequestSolarInfo : Optimizer "Panel 1.1.2" Energy = 1962.25 Wh Current Power = 10.74 W
2020-05-21 21:05:05.661 Status: dzVents: dzRequestSolarInfo : to monitor create an dummy device type="Electric (Instant+Counter) name="Panel 1.1.2"
2020-05-21 21:05:05.661 Status: dzVents: dzRequestSolarInfo : Optimizer "Panel 1.1.3" Energy = 1981.50 Wh Current Power = 9.85 W
2020-05-21 21:05:05.662 Status: dzVents: dzRequestSolarInfo : to monitor create an dummy device type="Electric (Instant+Counter) name="Panel 1.1.3"
2020-05-21 21:05:05.662 Status: dzVents: dzRequestSolarInfo : Optimizer "Panel 1.1.4" Energy = 1952.75 Wh Current Power = 7.31 W
2020-05-21 21:05:05.662 Status: dzVents: dzRequestSolarInfo : to monitor create an dummy device type="Electric (Instant+Counter) name="Panel 1.1.4"
2020-05-21 21:05:05.662 Status: dzVents: dzRequestSolarInfo : Optimizer "Panel 1.1.5" Energy = 1944.50 Wh Current Power = 7.31 W
2020-05-21 21:05:05.662 Status: dzVents: dzRequestSolarInfo : to monitor create an dummy device type="Electric (Instant+Counter) name="Panel 1.1.5"
2020-05-21 21:05:05.662 Status: dzVents: dzRequestSolarInfo : Optimizer "Panel 1.1.6" Energy = 1973.75 Wh Current Power = 8.73 W
2020-05-21 21:05:05.663 Status: dzVents: dzRequestSolarInfo : to monitor create an dummy device type="Electric (Instant+Counter) name="Panel 1.1.6"
2020-05-21 21:05:05.663 Status: dzVents: dzRequestSolarInfo : Optimizer "Panel 1.1.7" Energy = 1848.75 Wh Current Power = 11.37 W
2020-05-21 21:05:05.663 Status: dzVents: dzRequestSolarInfo : to monitor create an dummy device type="Electric (Instant+Counter) name="Panel 1.1.7"
2020-05-21 21:05:05.663 Status: dzVents: dzRequestSolarInfo : Optimizer "Panel 1.1.8" Energy = 1887.25 Wh Current Power = 10.46 W
2020-05-21 21:05:05.663 Status: dzVents: dzRequestSolarInfo : to monitor create an dummy device type="Electric (Instant+Counter) name="Panel 1.1.8"
2020-05-21 21:05:05.663 Status: dzVents: dzRequestSolarInfo : Optimizer "Panel 1.1.9" Energy = 1856.75 Wh Current Power = 9.06 W
2020-05-21 21:05:05.663 Status: dzVents: dzRequestSolarInfo : to monitor create an dummy device type="Electric (Instant+Counter) name="Panel 1.1.9"
2020-05-21 21:05:05.664 Status: dzVents: dzRequestSolarInfo : Optimizer "Panel 1.1.10" Energy = 1900.00 Wh Current Power = 11.53 W
2020-05-21 21:05:05.664 Status: dzVents: dzRequestSolarInfo : to monitor create an dummy device type="Electric (Instant+Counter) name="Panel 1.1.10"
2020-05-21 21:05:05.664 Status: dzVents: dzRequestSolarInfo : Optimizer "Panel 1.1.11" Energy = 1876.00 Wh Current Power = 12.52 W
2020-05-21 21:05:05.664 Status: dzVents: dzRequestSolarInfo : to monitor create an dummy device type="Electric (Instant+Counter) name="Panel 1.1.11"
2020-05-21 21:05:05.664 Status: dzVents: dzRequestSolarInfo : Optimizer "Panel 1.1.12" Energy = 1798.25 Wh Current Power = 8.59 W
2020-05-21 21:05:05.664 Status: dzVents: dzRequestSolarInfo : to monitor create an dummy device type="Electric (Instant+Counter) name="Panel 1.1.12"
2020-05-21 21:05:05.664 Status: dzVents: dzRequestSolarInfo : -=[ End ]=====================================================
Greetings McMelloW
- McMelloW
- Posts: 427
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
Re: SolarEdge individual optimizer dzVents script
Hello Richard,
Is there no figure for the Total Lifetime Energy? (Totale energie) I could not find it in the test output.
https://monitoring.solaredge.com/solare ... ut/logical
imo This a counter within the Inverter? At least it is also available on the monitor homepage.
Is there no figure for the Total Lifetime Energy? (Totale energie) I could not find it in the test output.
https://monitoring.solaredge.com/solare ... ut/logical
imo This a counter within the Inverter? At least it is also available on the monitor homepage.
Greetings McMelloW
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: SolarEdge individual optimizer dzVents script
I muat be doing something stupid but this is the only output I get
2020-05-22 19:34:00.531 Status: dzVents: dzRequestSolarInfo : -=[ Start HTTP Request]=======================================
2020-05-22 19:34:00.531 Status: dzVents: dzRequestSolarInfo : -=[ End ]=====================================================
any hint ?
I do net get how the
callback = 'SolarEdgeWebResponse'
should work, any hint ??
2020-05-22 19:34:00.531 Status: dzVents: dzRequestSolarInfo : -=[ Start HTTP Request]=======================================
2020-05-22 19:34:00.531 Status: dzVents: dzRequestSolarInfo : -=[ End ]=====================================================
any hint ?
I do net get how the
callback = 'SolarEdgeWebResponse'
should work, any hint ??
- McMelloW
- Posts: 427
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
Re: SolarEdge individual optimizer dzVents script
Did you fill in your email, password and SiteID?
It looks like you are getting no response on the HTTP Request
It looks like you are getting no response on the HTTP Request
Greetings McMelloW
Who is online
Users browsing this forum: No registered users and 1 guest