Hi,
this arose because my home assistant integration with nuki didn’t work, but it seems there is an issue with the bridge API:
I use nuki software bridge on an Galaxy S6, which works pretty well with the nuki app as long as I prohibit the phone to sleep.
I activated the web api on the phone and set the token.
But unfortunately the GET /info only works with ?token= and not with ?ts=
?ts:
DEBUG timestamp=2020-07-08T21:34:30Z
DEBUG:sha256(2020-07-08T21:34:30Z,4711,123456) =
ff8c0c9f21cf25c7f5e3c696958b9f1aacf0a877d33909922ff9ba2bdb8ceae6
DEBUG url=http://192.168.11.34:8080/info?ts=2020-07-08T21:34:30Z&rnr=4711&hash=ff8c0c9f21cf25c7f5e3c696958b9f1aacf0a877d33909922ff9ba2bdb8ceae6
GET: http://192.168.11.34:8080/info?ts=2020-07-08T21:34:30Z&rnr=4711&hash=ff8c0c9f21cf25c7f5e3c696958b9f1aacf0a877d33909922ff9ba2bdb8ceae6
Response:
http 401
{“error”:“invalid api token”}
?token:
$ curl “http://192.168.11.34:8080/info?token=123456”
{“bridgeType”:2,“ids”:{“serverId”:xxx},“versions”:{“appVersion”:“1.4.6”},“uptime”:558015,“currentTime”:“2020-07-08T21:32:28Z”,“serverConnected”:true,“scanResults”:[{“nukiId”:xxx,“name”:“Nuki_xxx”,“rssi”:-91,“paired”:true}]}
I’m running out of ideas, what could be wrong. Any idea?
Thanks
Max