OK, so I spent a lot more time than it should have taken and all I really did was hack apart someone elses work (reneboer here on the boards -- thanks for creating the Envoy one!) to make this work but it is working for me. I was starting from square 1 though so I'll cut myself a little slack.
This is EXTREMELY basic, it just pulls in the current data being reported by your SolarEdge site and uses the existing PowerMeter files to display the current watts and then a value you choose in the KWH field.
So for my example, I have a device called SolarEdge MonthToDay that displays the current (within 5 mins polling) watts being reported by my SolarEdge and then the MonthToDay KWH being reported next to it. I starting going the path of customizing a JSON file but it didn't display right on VeraMate so Im fine with this basic hacked together solution using the existing PowerMeter files.
I can't offer much in the way of support but it works on my VeraLite with the latest UI7 beta firmware. As long as you can get your SolarEdge data from the following URL:
https://monitoringapi.solaredge.com/site/**YOURSITENUMBER**/overview.json?api_key=**YOURAPIKEY**
Then this little plugin should bring that data into your Vera for you to see.
To Install:
Upload the I_SolarEdgePower1.xml file attached here via Apps --> Develop apps --> Luup files --> Upload
Then Create device via Apps --> Develop apps --> Create device
Use the following settings:
Description = SolarEdge Current (or what you like)
Upnp Device Filename = D_PowerMeter1.xml
Upnp Implementation Filename = I_SolarEdgePower1.xml
Reload the lua a couple times it seems to help and wait a minute for the device to show up and to load the variables. Once installed, go to "Advanced" in device settings, then the 'Variables' tab. Hopefully you the following variables show up:
SiteID (Put your Site ID here)
API (Put your site API key here)
KWHDisplay (Current / Today / MTD / Lifetime)
---This variable controls what number shows up in the KWH on the dashboard of the plugin. I use MTD as it gives me a quick at a glance what my solar generation is against the internal energy monitor above it on my dashboard for MTD.
If the variables don't show, give it a minute and reload the lua again and wait a minute, they should eventually show up in there.
Save the variables to the device and reload again and hopefully it should start pulling in the data. Note - I was having a heck of a time getting the device to save the variables. Maybe being inpatient, I don't know but it did take a few times of entering each variable then saving, reloading then going back in and adding the next one. Once they are saved it seems to work.
The plugin is set to refresh the data every 5 minutes to keep you under the 300 api hits a day that SolarEdge gives you.
Again, nothing fancy, good enough for my curiosity at this point, hopefully someone more seasoned will create a richer plugin. Most credit goes to rboer/Jacob/robertgabrielson for providing the Envoy one. Apologies if any of my crappy coding offends anyone.
