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

Solarman dual inverters - only updates one #40

Closed AndrewJPye closed 5 years ago

AndrewJPye commented 5 years ago

Hi, I have two inverters on my system (one converting the solar to the mains and the other converting for battery storage). When I install SolarMAN and I log in with site ID I see both inverters and I select them both and they are then both visible in Homey (running Homey V2 and SolarPanels beta v2.4.0). However, only one inverter updates in Homey. If I then delete the one that does not update and reinstall it then that one updates but the other now stops! It appears that the app can only read one inverter.

AndrewJPye commented 5 years ago

I had an idea to work round this by creating a second site on my solarman account and having one inverter on each site. However, this still does not work - only the last inverter to be created updates.

DiedB commented 5 years ago

This has been an issue across multiple inverter brands and I suspect that it has to do with the Homey software. It has never been reported before Homey v2 released.

AndrewJPye commented 5 years ago

Thanks Diederick. It's a shame because your app is perfect for what I wanted! I did have the following idea for a workaround:

Is it possible to create a "second" instance of the app and install that as well and see if one inverter can be linked to one, and the second to the other. 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.... it's a bit clunky but it might be worth a try

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!

AndrewJPye commented 5 years ago

Hi Diederick. How would I go about installing the Experimental version?

DiedB commented 5 years ago

Looked through the settings but could not find anything that enables experimental updates. I think it's best to just wait it out, will probably take less than a week to get it to stable.

DiedB commented 5 years ago

Version 2.0.5 should incorporate this fix. Can you install it and check if it solves your issue?

AndrewJPye commented 5 years ago

Hi, unfortunately that appears to have broken it completely...

Homey had automatically installed the update but neither device had updated their power readings since it had restarted.

Therefore, I uninstalled both solarman devices and restarted again.

Now when I try to install a new device I get a timeout at 30000ms and cannot create any solarman devices..

DiedB commented 5 years ago

Do you have their phone app as well? Does that work and is it stable?

AndrewJPye commented 5 years ago

Hi, yes, I am getting stable accurate readings through the solar man app and webpage.

AndrewJPye commented 5 years ago

Interestingly, I tried throughout today and had the same problem until just now. They have now both installed. I will see if they keep updating in the morning....

DiedB commented 5 years ago

The APIs of these Chinese manufacturers seem iffy at best, please report back.

AndrewJPye commented 5 years ago

12 hours in and so far, so good!

DiedB commented 5 years ago

I'll close this issue, as it was probably a problem on Athom's part. Thanks for letting me know!