Enhancements
- Use encrypted token for communication with the Nuki bridge, see #94. Please take notice of the following:
- Encrypted tokens requires Nuki biridge firmware >= 2.14.0 (or >= 1.22.1 for the v1 bridge). Make sure to upgrade your bridge firmware before upgrading Homebridge NB;
- As with hashed tokens, the clocks on the server running Homebridge and the Nuki bridge to be synchronised;
- The encryption of the token is provided by
sodium-plus
. Unfortunately this repository contains a C++ module, that might need to be compiled on installation. I've made this an optional dependency, so Homebridge NB can be installed on systems without build tools, usingnpm -g i homebridge-nb --omit=optional
. In this case, Homebridge NB reverts to using hashed tokens.
nb
: add-E
parameter to select level of encryption (none
,hashedToken
, orencryptedToken
);NbClient
: addencryption
parameter.- Create a separate library,
hb-nb-tools
for the modules interacting with the Nuki API and thenb
tool, sonb
can be installed standalone, on servers not running Homebridge.
Bump Dependencies
- homebridge-lib v6.3.13;
- sodium-plus v0.9.0.