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.