SmartThingsPublic
SmartThingsPublic copied to clipboard
Possible error on Quirky Tripper - re:battery
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
@mitchpond created a pull request (my first!) on this...