Dear Mr.Lendl,
i am using Nuki with openHAB 2.5 and generally speaking i am satisfied. I use it via openHAB binding, as well as API HTTP JSON at the moment (just to compare results and actions). But there are three issues i want to get rid of:
a) When working with the API (http://myIP:8080/lockState?nukiId=1234567&token=abcdefgh) i do get a JSON response with its state, see the following image. Thats fine. But while locking or opening, or in some undefined intervals in between, i get HTTP 503 Errors and others in my openHAB logfile
2020-02-20 13:55:30.025 [WARN ] [ab.binding.http.internal.HttpBinding] - Transformation ‘JSONPATH($.state)’ threw an exception. [response=HTTP 503 Unavailable]
org.openhab.core.transform.TransformationException: Invalid path ‘$.state’ in ‘HTTP 503 Unavailable’
As well as another API error like:
2020-02-20 14:14:39.089 [vent.ItemStateChangedEvent] - Nuki_Status changed from 1 to {“success”: false}
2020-02-20 14:14:39.089 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘{“success”: false}’ with the file ‘nukilockstates.map’ : Target value not found in map for ‘{“success”: false}’
But manually looking at the API JSON, it says:
{
“mode”: 2,
“state”: 1,
“stateName”: “locked”,
“batteryCritical”: true,
“success”: true
}
Why is that and can it be fixed?
b) When working with the official openHAB binding (which i would prefer), the lock state does not get updated. When i click “lock door now”, the state changes to “locking” but never succeeds to “locked”. It always stays in its moving state so to say, with no confirmation result
c) My Nuki battery gets drained within 2 weeks of operation. Maybe it is because of one of these faults a) or b)?
Thank you for your kind help!