Author Topic: Any SolarEdge monitor plugins?  (Read 3967 times)

Offline cmille34

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +3/-1
Re: Any SolarEdge monitor plugins?
« Reply #15 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!

Offline jamac

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-1
Re: Any SolarEdge monitor plugins?
« Reply #16 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.
« Last Edit: December 19, 2016, 04:17:13 am by jamac »

Offline jamac

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-1
Re: Any SolarEdge monitor plugins?
« Reply #17 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.

Offline cmille34

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +3/-1
Re: Any SolarEdge monitor plugins?
« Reply #18 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!

Offline stibbzy

  • Sr. Newbie
  • *
  • Posts: 29
  • Karma: +1/-0
Re: Any SolarEdge monitor plugins?
« Reply #19 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?


Offline jamac

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-1
Re: Any SolarEdge monitor plugins?
« Reply #20 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.

Offline cmille34

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +3/-1
Re: Any SolarEdge monitor plugins?
« Reply #21 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.

Offline tb001

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: +5/-2
Re: Any SolarEdge monitor plugins?
« Reply #22 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.

Offline blahblahblah

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Any SolarEdge monitor plugins?
« Reply #23 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!

Offline cmille34

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +3/-1
Re: Any SolarEdge monitor plugins?
« Reply #24 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.
« Last Edit: February 06, 2017, 11:08:39 am by cmille34 »

Offline blahblahblah

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Any SolarEdge monitor plugins?
« Reply #25 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...