Closed rlconkl closed 4 years ago
Thanks for the issue!
Not sure if you're actively monitoring this project,
Active would be strong, but I do use this device myself still. I haven't made use of the lux, and the other stuff was working, so I stopped looking :upside_down_face: I'll try and take a look at this later tonight.
The lux estimates weren't a critical feature for me, either, so I'm not overly concerned. That being said, if there's something unique to my weather location or network environment, I'm happy to help test/troubleshoot. Thanks for your effort on this project!
@rlconkl mind testing out the code in the pr i just opened? (Fix is in the dev branch)
I grabbed the code from the dev branch and updated my driver code. A refresh of the virtual device estimated lux correctly and without error.
Hi Kirk,
Not sure if you're actively monitoring this project, but I tried to add your code as a virtual device in my Hubitat, and encountered this error while polling. (If I exit the estimateLux() function with
return 0
as soon as it begins, everything else appears to work normally.)Presently, the error is encountered on this line:
lux = (l < 50f ? 50L : l.trunc(0) as long)
If it helps, here is the (redacted) output from my log:
I'm just getting my feet wet with Hubitat, but if there's anything I can do to help debug/test, I'm happy to participate!