The Vera Community forums have moved!

General => Power Management => Topic started by: dannieboiz on October 04, 2015, 06:19:08 pm

Title: Any SolarEdge monitor plugins?
Post by: dannieboiz on October 04, 2015, 06:19:08 pm
I'm getting ready to do a 7.28kw system and debating between Enphase or SolarEdge inverters. Leaning toward SolarEdge at this point but didn't see anything on their monitoring and Vera but a few Enphase.
Title: Re: Any SolarEdge monitor plugins?
Post by: stibbzy on December 18, 2015, 02:39:57 am
I'd love to know this too!  :)
Title: Re: Any SolarEdge monitor plugins?
Post by: dannieboiz on December 18, 2015, 02:57:01 am
My system is up but not found a way. Be nice to be able to calculate solar output and consumption difference automatically
Title: Re: Any SolarEdge monitor plugins?
Post by: reneboer on December 18, 2015, 05:56:14 am
Hi,

Here is the API documentation from them. You can use that and the Enphase one to develop one for SolarEdge.

http://www.solaredge.com/files/pdfs/se_monitoring_api.pdf (http://www.solaredge.com/files/pdfs/se_monitoring_api.pdf)

Cheers Rene
Title: Re: Any SolarEdge monitor plugins?
Post by: tb001 on August 23, 2016, 03:37:19 pm
Wondering if anyone got this up and running. We just installed solar a few months ago with a solar edge system and I can see this being useful.
Title: Re: Any SolarEdge monitor plugins?
Post by: jamac on October 31, 2016, 06:15:20 pm
SolarEdge here too! A plug in would be great  :)
Title: Re: Any SolarEdge monitor plugins?
Post by: cmille34 on November 29, 2016, 09:27:12 am
Bump for another SolarEdge user that would be willing to help troubleshoot/test any plugin for this.
Title: Re: Any SolarEdge monitor plugins?
Post by: Zoro on November 29, 2016, 02:41:36 pm
Bump for another SolarEdge user that would be willing to help troubleshoot/test any plugin for this.

Hi--

  Have you thought of using TED6000. See http://www.theenergydetective.com/

Z
Title: Re: Any SolarEdge monitor plugins?
Post by: jamac on November 29, 2016, 02:46:30 pm
Bump for another SolarEdge user that would be willing to help troubleshoot/test any plugin for this.

See this thread for a potential workaround http://forum.micasaverde.com/index.php/topic,34908.0.html

The SolarEdge inverter uploads solar production data to PVOutput. Then you create a Vera power meter device to read the production data from PVOutput.

It's not as good as a dedicated plugin but it's better than nothing!
Title: Re: Any SolarEdge monitor plugins?
Post by: cmille34 on November 29, 2016, 02:51:38 pm
Thanks, it appears I don't have a API SiteKey so I have to request that from our installers.  I've never made a plugin or messed with someone else's but I'm looking at this ENVOY one that someone else made and I don't think it would be terribly difficult to hack it up to work with the SolarEdge APIs.  If I can get it to a point to report the basics (current output for my site, daily, lifetime, etc), i'll be sure to share it here.
Title: Re: Any SolarEdge monitor plugins?
Post by: jamac on November 29, 2016, 04:29:57 pm
Yes, you need to get the API key from the installer.

It would be great if the Envoy plugin could be modified to work.

Best of luck - I'll monitor this thread with interest!
Title: Re: Any SolarEdge monitor plugins?
Post by: cmille34 on December 07, 2016, 03:03:07 pm
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. :)
Title: Re: Any SolarEdge monitor plugins?
Post by: jamac on December 07, 2016, 03:18:33 pm
Well done! My Vera3 is playing up after a recent firmware upgrade (sigh...) but as soon as I sort that out I'll give this plugin a go!
Title: Re: Any SolarEdge monitor plugins?
Post by: tdolder on December 09, 2016, 02:12:23 am
 :D great!! I installed the plugin and it is working fine, now i can use current power in scenes, happy
Title: Re: Any SolarEdge monitor plugins?
Post by: reneboer on December 09, 2016, 04:22:46 am
Well done! I use my Envoy Watts readings in several scenes and LUA code (sunscreen control, heating fine tuning) so enjoy those and other possibilities.

Cheers Rene
Title: Re: Any SolarEdge monitor plugins?
Post by: cmille34 on December 09, 2016, 08:53:11 am
:D great!! I installed the plugin and it is working fine, now i can use current power in scenes, happy

Wow - you made my day!  I was hesitant to share the file not being a real developer but knowing even 1 person used it successfully made it all worth it.  Thanks for letting me know!
Title: Re: Any SolarEdge monitor plugins?
Post by: jamac on December 19, 2016, 04:15:20 am
Ok. So I've installed the plug-in according to the instructions. The device has appeared and I've set the variables but it doesn't seem to be pulling any data.

If i insert my site number and API into the url I get the data but the plugin doesn't seem to be able to get it. I'll keep trying but let me know if you're got any ideas.
Title: Re: Any SolarEdge monitor plugins?
Post by: jamac on December 19, 2016, 04:46:40 am
It's working! Not sure what I did but now it's pulling the data from Solar Edge.

Well done! Thanks for putting this together.
Title: Re: Any SolarEdge monitor plugins?
Post by: cmille34 on December 19, 2016, 07:54:29 am
It's working! Not sure what I did but now it's pulling the data from Solar Edge.

Well done! Thanks for putting this together.

It may take up to 5 minutes to poll.  Glad its working for you!
Title: Re: Any SolarEdge monitor plugins?
Post by: stibbzy on December 23, 2016, 11:11:29 pm
Ok, so I took a similar approach to cmille34, basically hacked apart the envoy plugin.

It's really basic and might not offer anything more than cmille34's good work. Basically the plugin displays as in the attachment. Would this be useful to anyone?

Title: Re: Any SolarEdge monitor plugins?
Post by: jamac on December 31, 2016, 08:58:18 pm
Thanks Stibbzy. Probably a little more than I need right now (i don't have a battery) but thanks anyway.

cmille34 - I think that the delay in the luup.call_delay function might be wrong. It's 1440, which is ~24 mins. I've changed this to 300, which is 5 mins. You could probably reduce this further and increase the night delay and still stay under the 300 poll limit, but 5 mins will be ok for me.
Title: Re: Any SolarEdge monitor plugins?
Post by: cmille34 on January 03, 2017, 06:56:18 am
cmille34 - I think that the delay in the luup.call_delay function might be wrong. It's 1440, which is ~24 mins. I've changed this to 300, which is 5 mins. You could probably reduce this further and increase the night delay and still stay under the 300 poll limit, but 5 mins will be ok for me.
You are absolutely right. Thanks for sharing that goof. I want to say I caught that initially but I obviously didn't fix it.  I updated mine to be 300 now as well.  Thanks again for letting me know.
Title: Re: Any SolarEdge monitor plugins?
Post by: tb001 on January 24, 2017, 01:15:40 pm
Just checked back in and so happy to see this! Thanks for your efforts cmille34!! Look forward to getting this up and going with our system.
Title: Re: Any SolarEdge monitor plugins?
Post by: blahblahblah on February 05, 2017, 10:45:55 am
This plugin is great! I have a home battery system and using this plugin lets me turn devices on and off based on solar generation. Superb.
One question, any chance it could be updated to make the polling interval a variable?
Well done sir!
Title: Re: Any SolarEdge monitor plugins?
Post by: cmille34 on February 06, 2017, 07:05:09 am
This plugin is great! I have a home battery system and using this plugin lets me turn devices on and off based on solar generation. Superb.
One question, any chance it could be updated to make the polling interval a variable?
Well done sir!

Sure! If you feel so inclined, give this version a go and see if it works for you.  It seems to be working for me. (2) new variables, PollingIntervalDay and PollingIntervalNight.  Set those values in seconds. I defaulted them both to 320.

I'm not sure how strict SolarEdge is on their 300 API hits a day so just be careful I'd say.

EDIT - Looks like i blew through my API limit for the day so maybe something isn't right with this edited version.  I'll do a little more testing before I repost it.

EDIT 2- OK, If you feel daring, go ahead and try this one.  It seems like if I polled much quicker than every 5 minutes I would start getting some API limit errors in the log.  The error indicated daily limit but if I stopped polling for a little while I could get data again so it seems like they have some other limits based on requests by IP during a period of time.  This one defaults to 320 seconds for Day and Night polling but you can adjust it.  No fancy feedback in the plugin if you run into errors, you'll need to check the lua log.  I'll try to help as best I can if this version doesn't work.  I did notice sometimes I would need to reload the engine after making a variable change.
Title: Re: Any SolarEdge monitor plugins?
Post by: blahblahblah on February 09, 2017, 03:06:42 pm
Thank you!

I have been running this for 48 hours and it seems to be working great!

I have triggers that run based off solar generation and so i wanted the polling interval to be 15 minutes instead of 5 minutes to level out the behavior a bit during cloudy days. At night, i set the pooling to hourly.

Thank you again! this is superb :)

now if only i could get my NRG energy system to work as well...
Title: Re: Any SolarEdge monitor plugins?
Post by: aecchalet on January 05, 2019, 01:06:40 pm
I plan on adding a power meter to monitor my exported power. Can this plugin be modified to report export power?
I want to create a trigger when exported power is > 5.9 kW to activate increased self-consumption actions.
Title: Re: Any SolarEdge monitor plugins?
Post by: aecchalet on January 05, 2019, 02:02:29 pm
@stbbzy I would like to try your version.  Can it also report exported power once a power meter is connected?
Title: Any SolarEdge monitor plugins
Post by: Leprorp on January 31, 2019, 01:13:23 am
Just wondering if anyone here has turbo or supercharged a NC MX5? Theres a fair bit of info out there and plenty of kits available out of the USA but Im unsure if those would have issues on a RHD car and would also need to find someone to tune it. Most kits seem to come with a base tune at extra cost but it sounds like there is a fair bit of tuning to be done to get it all running right.
Thanks in advance for any info