SolarEdge photovoltaic system data in node-red-contrib-ui dashboard

Little flow that collects the PV System data from the SolarEdge Portal over the API and displays it on a node-red-contrib-ui Dashboard.

  • install node-red-contrib-ui
  • enable the API in the SolarEdge monitoring portal or ask your installer to do so
  • get the API key and the site ID
  • import the flow and replace the site ID and API key in the http request node
[{"id":"88f5ae81.3d8df8","type":"ui_tab","name":"Home","icon":"dashboard","order":"1"},{"id":"69768bb3.843cbc","type":"inject","z":"a983c512.d93f8","name":"every 15 min","topic":"","payload":"","payloadType":"str","repeat":"900","crontab":"","once":true,"x":208,"y":618,"wires":[["747e20e9.81d8c"]]},{"id":"747e20e9.81d8c","type":"http request","z":"a983c512.d93f8","name":"","method":"GET","ret":"obj","url":"https://monitoringapi.solaredge.com/site/[enter site id here]/overview?api_key=[enter api key here]","x":578,"y":615,"wires":[["e5131753.6b29e","36eb2fd.abcf75","69541f61.940d48","e7f4c8fa.d34a08","abc2ccc8.8bb288","c7fb8107.fd3508"]]},{"id":"e5131753.6b29e","type":"debug","z":"a983c512.d93f8","name":"","active":true,"console":"false","complete":"payload.overview","x":856,"y":614,"wires":[]},{"id":"36eb2fd.abcf75","type":"ui_text","z":"a983c512.d93f8","tab":"88f5ae81.3d8df8","name":"Todays production ","group":"PV System","order":"3","format":"{{msg.payload.overview.lastDayData.energy / 1000  | number : 2}} kWh","x":838,"y":745,"wires":[]},{"id":"69541f61.940d48","type":"ui_text","z":"a983c512.d93f8","tab":"88f5ae81.3d8df8","name":"Current Production","group":"PV System","order":"4","format":"{{msg.payload.overview.currentPower.power / 1000  | number : 3}} kW","x":835,"y":789,"wires":[]},{"id":"e7f4c8fa.d34a08","type":"ui_text","z":"a983c512.d93f8","tab":"88f5ae81.3d8df8","name":"This months production","group":"PV System","order":"2","format":"{{msg.payload.overview.lastMonthData.energy / 1000000  | number : 2}} MWh","x":863,"y":705,"wires":[]},{"id":"abc2ccc8.8bb288","type":"ui_text","z":"a983c512.d93f8","tab":"88f5ae81.3d8df8","name":"Total Production","group":"PV System","order":1,"format":"{{msg.payload.overview.lifeTimeData.energy / 1000000 | number : 2}} MWh","x":834,"y":664,"wires":[]},{"id":"3e00926b.d80f46","type":"comment","z":"a983c512.d93f8","name":"SolarEdge","info":"replace [enter site id here] \nnd [enter api key here] \nin the http request node with the data\nyou get from the SolarEdge monitoring portal","x":176,"y":553,"wires":[]},{"id":"ae253127.7797","type":"file","z":"a983c512.d93f8","name":"","filename":"currentPower.json","appendNewline":false,"createDir":false,"overwriteFile":"true","x":1005,"y":858,"wires":[]},{"id":"583db548.70f384","type":"file in","z":"a983c512.d93f8","name":"","filename":"currentPower.json","format":"utf8","x":1003,"y":900,"wires":[["13942b09.5c26bd"]]},{"id":"13942b09.5c26bd","type":"json","z":"a983c512.d93f8","name":"","x":967,"y":961,"wires":[["5e0153d3.79861c"]]},{"id":"5e0153d3.79861c","type":"ui_chart","z":"a983c512.d93f8","tab":"88f5ae81.3d8df8","name":"Production","group":"PV System","order":"5","interpolate":"linear","nodata":"No Data","removeOlder":1,"removeOlderUnit":"86400","x":817,"y":866,"wires":[["ae253127.7797"],["583db548.70f384"]]},{"id":"c7fb8107.fd3508","type":"function","z":"a983c512.d93f8","name":"","func":"msg.payload=msg.payload.overview.currentPower.power; \nreturn msg;","outputs":1,"noerr":0,"x":604,"y":866,"wires":[["5e0153d3.79861c"]]}]
roadfox

Flow Info

created 1 year, 3 months ago

Node Types

Core
  • comment (x1)
  • debug (x1)
  • file (x1)
  • file in (x1)
  • function (x1)
  • http request (x1)
  • inject (x1)
  • json (x1)
Other
  • ui_chart (x1)
  • ui_tab (x1)
  • ui_text (x4)

Tags

  • solaredge
  • monitoring
  • dashboard
  • node-red-contrib-ui
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option