mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-17 02:48:31 -07:00
Allow to configure network_key. https://github.com/Koenkk/zigbee2mqtt/issues/685
This commit is contained in:
parent
0fe3a9b45c
commit
69e805c882
@ -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],
|
||||||
```
|
```
|
@ -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],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user