Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZWave Adapter Network Key is case sensitive #74

Open
personalnadir opened this issue Jul 23, 2019 · 0 comments
Open

ZWave Adapter Network Key is case sensitive #74

personalnadir opened this issue Jul 23, 2019 · 0 comments

Comments

@personalnadir
Copy link

personalnadir commented Jul 23, 2019

Configuring the z-wave adapter with the network key generated using the command fails:
cat /dev/urandom | tr -dc '0-9A-F' | fold -w 32 | head -n 1 | sed -e 's/\(..\)/0x\1, /g'

0x2F,0xD6,0x8E,0x86,0x45,0x4A,0x4C,0x23,0x05,0x44,0x25,0x78,0x86,0x07,0x14,0x4E

Log output:
ERROR : zwave: Found NetworkKey, but invalid format. Ignoring

However lowercasing the key to
0x2f,0xd6,0x8e,0x86,0x45,0x4a,0x4c,0x23,0x05,0x44,0x25,0x78,0x86,0x07,0x14,0x4e
INFO : zwave: Found NetworkKey, initializing with support for Security Devices

Adding whitespace after each of the commas also causes the network key to be rejected.

I think the networkKey should not be case sensitive and should also tolerate whitespace. I also think that the UI should indicate that a networkKey is in an invalid format.

@mrstegeman mrstegeman transferred this issue from WebThingsIO/gateway Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant