I also have the Nuki Smartlock including the Nuki Bridge and I do see the points for an integration via a Nuki-Binding. Would be making life more easy for all Nuki-Users! ![]()
But until then, I am having some understanding problems on how to integrate the Nuki like you guys did already.
So I activated the “http”-binding and tried to use the above codes, but I already got this one after pasting the simple Switch-Item in my .items:
// hint: see next post: POST won't work with Nuki Bridge and Nuki Smartlock - use GET instead
Switch EGFrontdoorLock "Haustüre [%s]" <lock> (EG_Windfang) { http=">[ON:POST:http://192.168.xx.xx:8080/lockaction?token=xxxxx&nukiid=xxxxxxx&action=2] >[OFF:POST:http://192.168.xx.xx:8080/lockaction?token=xxxxx&nukiid=xxxxxxx&action=1]" }
which results in
// events.log
2016-11-20 09:26:32.013 [ItemCommandEvent ] - Item 'EGFrontdoorLock' received command ON
2016-11-20 09:26:32.036 [ItemStateChangedEvent ] - EGFrontdoorLock changed from NULL to ON
// openhab.log
2016-11-20 09:26:32.135 [WARN ] [org.openhab.io.net.http.HttpUtil ] - Method failed: HTTP/1.1 400 Bad Request
Using the above URLs in .items result in opening/closing the door as expected. Do I miss something here?
Thanks for your help,
Thomas.