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

Possible error on Quirky Tripper - re:battery #40

Open
alecm opened this issue Aug 31, 2016 · 1 comment
Open

Possible error on Quirky Tripper - re:battery #40

alecm opened this issue Aug 31, 2016 · 1 comment

Comments

@alecm
Copy link

alecm commented Aug 31, 2016

Hello @mitchpond

First, thanks for all the help on this.
I was using your most recent Tripper device handler (with June 6th update) and not getting battery status - just two blank lines.
In log I was getting
9:29:46 AM: error java.lang.NullPointerException: Cannot invoke method div() on null object @ line 207
9:29:46 AM: debug Received battery level report
9:29:46 AM: debug description: read attr - raw: D15E010001082000201B, dni: D15E, endpoint: 01, cluster: 0001, size: 08, attrId: 0020, encoding: 20, value: 1b
9:29:44 AM: error java.lang.NullPointerException: Cannot invoke method div() on null object @ line 207

When I took a look at current and previous versions I updated line 207 to
log.debug("${linkText} reports battery voltage at ${volts/10}")

[e.g., changed "RawValue" to "volts" ](and "batery" to "battery" :-) ) - and it looks like battery reporting works fine now. You might want to make the change.

Best,
Alec

@alecm
Copy link
Author

alecm commented Sep 10, 2016

@mitchpond created a pull request (my first!) on this...

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

No branches or pull requests

1 participant