Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No devices in status.js when no power is generated #39

Closed
freddieleeman opened this issue Jul 27, 2021 · 4 comments
Closed

No devices in status.js when no power is generated #39

freddieleeman opened this issue Jul 27, 2021 · 4 comments

Comments

@freddieleeman
Copy link

When my inverter (PowerOne + iGEN Wi-Fi external logger) does not generate any power for a while, the inverter disappears from the status.js source, causing errors and resulting in 'Unavailable' sensors.

status.js with sun:

var yz_device_num="1";
var myDeviceArray=new Array();
myDeviceArray[0]="xxxxxx          ,xxxx,,-xxxx-,,xxx,x,xxxxxx,,x,";
;
function initPageText()

status.js without sun:

var yz_device_num="0";
var myDeviceArray=new Array();
;
function initPageText()

Possible fix:
This issue could be resolved by using the cache when the source is retrievable (status.js found), but the regex for the data fails (or yz_device_num value is 0). The power_current sensor could be forced to 0, and the power_today and power_total values could be retrieved from cache.

@klaasnicolaas
Copy link
Collaborator

Is there any way we can help you with this issue? It has been open for a while and in the meantime a lot of work has been done on a v2.0 version of this custom component.

@freddieleeman
Copy link
Author

I worked around this issue by using SQL to retrieve the latest valid value, but it would be great if the integration caches the values to avoid 'unknown' status.

@robbinjanssen
Copy link
Owner

Before we can continue we need to make a decision on what to do with unreachable inverters. Feel free to jump in on klaasnicolaas/python-omnikinverter#24 :-)

@robbinjanssen
Copy link
Owner

Created a new issue with more details about this :-)

@github-actions github-actions bot locked and limited conversation to collaborators Feb 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants