Closed Skjall closed 3 years ago
will check
I cannot reproduce this. The plugin logic actually expects this and uses the batteryCritical flag to use some content numbers:
batteryChargeState = json.batteryChargeState ? json.batteryChargeState: batteryCritical ? Constants.BATTERY_LOW : Constants.BATTERY_FULL;
Constants.BATTERY_FULL : 100,
Constants.BATTERY_LOW : 5
I think you can close it. Maybe the state was flapping on the edge of too low voltage and therefore the plug-in call saw a low battery and mine not. I just took a look in the Nuki App and now the battery was actually low. So.... not a bug. Thanks!
The Opener has no battery level. The API returns only a bool for batteryCritical. The Plugin seems to expect a "batteryChargeState" and therefore creates a reading for the battery level, which is always 0.