iobroker-community-adapters / ioBroker.nuki-extended

Nuki Smart Lock - Keyless electronic door lock for smart access with your ioBroker
MIT License
28 stars 15 forks source link

Improvement: Update battery related datafields periodically, not only when changed #99

Open Grizzelbee opened 3 years ago

Grizzelbee commented 3 years ago

Due to the update machanism of the adapter battery scripts fail to detect wether the batteries are empty, because usualy the scripts use the update timestamp of the datapoint to detect the last update and hence if the device may be dead (Last update is older than x hours).

So it would be great if the adapter updates the battery field (Smartlocks.door.state.batteryCritical (indicator.lowbat) )) as long as it receives ANY data from the smartlock.

In addition: If it's possible to get more Information than only lowBat it would be great to get such datapoints.

r748 commented 1 year ago

+1 It would really be helpful to have the batteryChargeState value updated periodically in order to be able to rule out an empty battery!