Page 2 of 2

Re: Nuki doorlock support

Posted: Sunday 17 September 2017 19:24
by RayAmsterdam
heggink wrote: Monday 11 September 2017 17:27 Hi eddypoot,

The lock will not give you the battery %% but it will return the battery status. It would be fairly easy to not only update the status of the lock but also update the lock battery status. Sample message from the lock:

curl -s "http://IP:8080/lockState?nukiId=NUKI_ID ... IDGE_TOKEN" returns
{"state": 3, "stateName": "unlocked", "batteryCritical": false, "success": true}

You would need a separate device and a second check on the batteryCritical field.

H
You could add '&battery=0' to the udevice command when batterycritical is true and add '; &battery=100' when batterycritical is false. The switch will turn yellow when the battery is critical.

Re: Nuki doorlock support

Posted: Sunday 17 September 2017 21:06
by heggink
Excellent addition. Many thanks.