-
Notifications
You must be signed in to change notification settings - Fork 12
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
Status fields all false on ECO850LCD #10
Comments
@JonathonReinhart interesting! I'll do my best to help but it's unfortunately hard to solve without direct access to the device. To your point, it looks like the proper register is changing when you plug / unplug but the code isn't translating it. To debug, I'd take the relevant driver code and pepper in some print statements: keys = [
'shutdown imminent',
'ac present',
'charging',
'discharging',
'needs replacement',
'below remaining capacity',
'fully charged',
'fully discharged'
]
number = 32 # whatever the output of get_feature_report(50)[-1] is
print(number)
bits = '{:08b}'.format(number)
print(bits)
bits = bits[::-1]
print(bits)
state = {k: bool(int(v)) for k, v in zip(keys, bits)}
print(state) Something like that. My only guess right now is it has something to do with the python version. Let me know how it goes! |
Well the first thing to note is that the current code has I put your bit-decoding snippet above into my code, and got this output:
...which doesn't seem correct. So the questions for anyone who wants to take this further are:
|
@JonathonReinhart I sent an email to TrippLite asking for the protocol. For reference, this driver was built off this protocol doc for SMART1500LCD. The relevant part is here: where the supported protocol expects one byte of this pattern. If this changes between batteries, we could support by checking battery type on init and changing the logic. |
@JonathonReinhart if you're interested in chasing this down, you'll need to email [email protected] with your model and serial number and ask for the communication protocol. Sounds like the same model's supported a few slightly different protocols over the years. Sorry I can't help more! |
I am seeing a similar issue with a OMNIVS1500LCD, just FYI.
|
First of all, thanks for this great little project!
I have a Tripp Lite ECO850LCD, and all of the "status" fields show
false
:I wrote this little tool for debugging:
Here's the output (while connected to AC):
And while disconnected:
Note this in the diff:
The text was updated successfully, but these errors were encountered: