Device Activity Check comparison bug?

@bertabcd1234
Just wondering if this is a bit of a harmless bug.
I am chasing a global battery issue with the beta/user driver.
All 13 of my Aqara motions are reporting 78% now.
I moved the affected devices to a group that tests for battery <78 but they all report as lower than 78 when they are at 78.
I changed the comparison to 77 and they all pass the test.
I think the battery < xx is acting as <= xx.

Yes, that is how it was implemented. If this is a problem for your use case, you can modify line 430 in the app code to change the operator.

No problem. It was just confusing without the <= sign.
image
Thanks. :slight_smile:

1 Like