DiedB / Homey-SolarPanels

Connects production statistics of a wide range of PV inverters to Homey
https://apps.athom.com/app/it.diederik.solar
GNU General Public License v3.0
48 stars 35 forks source link

Pvoutput not updating #36

Closed kevvie closed 5 years ago

kevvie commented 5 years ago

I've updated my homey to v2.0 and running the solar panels beta app(v2.4.0) but pvoutput is syncing for a few minutes and stops randomly.

DiedB commented 5 years ago

Sometimes the cron jobs break when upgrading to 2.0. Can you remove the PVOutput device, then the app entirely and then reinstall the Solar Panels app (beta) and add your PVOutput device again?

kevvie commented 5 years ago

I've tried it but the problem still exists.

I've added a screenshot from insights. I own 2 inverters A and B and I have one pvoutput system which contains them both combined. The pvoutput website does show the "live" data but it isn't available in the homey app for two of my systems. image

DiedB commented 5 years ago

What do you mean by syncing and stopping? Insights collects the data just fine, my PVOutput system works fine in the app as well. How do you check the energy and power in the app?

kevvie commented 5 years ago

Ive done some more testing today. It seems like adding another pvoutput system breaks the previous added systems.

When I have only 1 system connected there is no problem, the data is updating like it should. When I add another system, the first system stops updating.

DiedB commented 5 years ago

Thanks for the clarification, I will look into it.

DiedB commented 5 years ago

Although I do not have multiple systems to test it with, you might be hitting API rate limits. Are both systems under the same account, while having different system IDs?

This app will fire 12 requests per hour per system, which will add up to 24 for two systems under the same account. If the service that is pushing the data to PVOutput is using more than 48 requests per hour, your API key will be rate limited until the next hour.

Could you try upgrading your PVOutput account for a year and check whether this solves the issue?

AndrewJPye commented 5 years ago

This looks similar to my issue that I created separately on the solarman. Mine doesn't appear to be API limits since one of them still updates. One thought I have is to create a "second" app and install that as well and see if one inverter can be linked to one, and the second to another. Unfortunately, I don't know how to do that but I envisage something like "SolarPanels2ndInverter" being the second app. In that case I would have "SolarPanels" and "SolarPanels2ndInverter" installed on Homey....

DiedB commented 5 years ago

Homey v2.0.5-rc.3 Experimental has a line in the changelog that might fix this issue:

[Apps SDK] Fixed a bug where CronTasks would fire the wrong event

Could you please install that version and verify whether this fixes your issue? If it doesn't, please try to remove the inverters and the app entirely and recreate them again. Please report back!