Skip to content

Commit f84dc25

Browse files
hamid-elaostadale3h
authored andcommitted
Add network_key configuration (home-assistant#2828)
* Add network_key configuration Network key can be set here rather than in the (difficult to find) configuration `options.xml`. It takes the same comma separated "0xNN" string syntax as previous. * Cleanup unneeded section Removed the options.xml information that is on longer required as per comments from @dale3h
1 parent 05c9e5f commit f84dc25

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

source/_docs/z-wave.markdown

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ zwave:
3535
Configuration variables:
3636
3737
- **usb_path** (*Optional*): The port where your device is connected to your Home Assistant host.
38+
- **network_key** (*Optional*): The 16 byte network key in the form `"0x01,0x02..."` used in order to connect securely to compatible devices.
3839
- **config_path** (*Optional*): The path to the Python OpenZWave configuration files. Defaults to the 'config' that is installed by python-openzwave
3940
- **autoheal** (*Optional*): Allows disabling auto Z-Wave heal at midnight. Defaults to True.
4041
- **polling_interval** (*Optional*): The time period in milliseconds between polls of a nodes value. Be careful about using polling values below 30000 (30 seconds) as polling can flood the zwave network and cause problems.
@@ -88,19 +89,7 @@ To add a Z-Wave device to your system, go to the Services menu and select the `z
8889

8990
### {% linkable_title Adding Security Devices %}
9091

91-
Security Z-Wave devices require a network key before being added to the network using the `zwave.add_node_secure` service. You must edit the `options.xml` file, located in your `python-openzwave config_path` to use a network key before adding these devices.
92-
93-
Edit your `options.xml` file:
94-
95-
```bash
96-
<!-- <Option name="NetworkKey" value="0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F 0x10" /> -->
97-
```
98-
Uncomment the line:
99-
```bash
100-
<Option name="NetworkKey" value="0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10" />
101-
```
102-
103-
You can replace these values with your own 16 byte network key. For more information on this process see the [OpenZwave](https://github.com/OpenZWave/open-zwave) wiki article [Adding Security Devices to OZW](https://github.com/OpenZWave/open-zwave/wiki/Adding-Security-Devices-to-OZW)
92+
Security Z-Wave devices require a network key before being added to the network using the `zwave.add_node_secure` service. You must set the *network_key* configuration variable to use a network key before adding these devices.
10493

10594
An easy script to generate a random key:
10695
```bash

0 commit comments

Comments
 (0)