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

fix: don't use solar_energy if 0 when it shouldn't be #246

Merged
merged 2 commits into from
Mar 30, 2024
Merged

fix: don't use solar_energy if 0 when it shouldn't be #246

merged 2 commits into from
Mar 30, 2024

Conversation

marcusds
Copy link
Contributor

For more details see #245

This is untested and probably not the right way to do this, I'm not super familiar with Python or this project, but just thought I would give it a whack anyhow.

@marcusds
Copy link
Contributor Author

Small sample size, but for the couple days I've been running this it's worked as intended.

I wonder if it's worth releasing a beta build for?

@HAEdwin

@HAEdwin
Copy link
Collaborator

HAEdwin commented Mar 29, 2024

@marcusds I now see what you mean by the second check on # of inverters. Strange this should not be happening. I'd rather would like to find out why this is possible. Give me some time and I'll release the beta.

	modified:   custom_components/apsystems_ecur/APSystemsSocket.py
@marcusds
Copy link
Contributor Author

marcusds commented Mar 30, 2024

@HAEdwin Yeah I was wondering if the bug could be entirely worked around with how you are processing the data? I also wonder if that you can't work around it if the whole query should be scrapped because if some data is bad, maybe all data is bad?

Reason for filter code added and conditions merged.
@HAEdwin
Copy link
Collaborator

HAEdwin commented Mar 30, 2024

Looked into the raw data and put it through my ECU analyzer software, it's just a firmware bug because the checksum (length of datastream) and datamapping is correct so it is easy/better to apply a filter. This should be the final result then, agree?

@marcusds
Copy link
Contributor Author

Sounds good

@HAEdwin HAEdwin merged commit 95589db into ksheumaker:main Mar 30, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants