This commit is contained in:
Koen Kanters 2018-12-24 16:29:06 +01:00
parent 0fe3a9b45c
commit 69e805c882
3 changed files with 11 additions and 0 deletions

View File

@ -53,4 +53,6 @@ advanced:
rtscts: true rtscts: true
# Optional: soft reset ZNP after timeout (in seconds); 0 is disabled # Optional: soft reset ZNP after timeout (in seconds); 0 is disabled
soft_reset_timeout: 0 soft_reset_timeout: 0
# Optional: network encryption key, changing requires repairing of all devices.
network_key: [1, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 10, 12, 13],
``` ```

View File

@ -30,6 +30,14 @@ const defaults = {
* https://koenkk.github.io/zigbee2mqtt/configuration/configuration.html * https://koenkk.github.io/zigbee2mqtt/configuration/configuration.html
*/ */
cache_state: true, cache_state: true,
/**
* https://github.com/Koenkk/zigbee2mqtt/issues/685#issuecomment-449112250
*
* Network key will serve as the encryption key of your network.
* Changing this will require you to repair your devices.
*/
network_key: [1, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 10, 12, 13],
}, },
}; };

View File

@ -10,6 +10,7 @@ const shepherdSettings = {
net: { net: {
panId: advancedSettings.pan_id, panId: advancedSettings.pan_id,
channelList: [advancedSettings.channel], channelList: [advancedSettings.channel],
precfgkey: settings.get().advanced.network_key,
}, },
dbPath: data.joinPath('database.db'), dbPath: data.joinPath('database.db'),
sp: { sp: {