diff --git a/zwave/CHANGELOG.md b/zwave/CHANGELOG.md index 145b95c..d2f1cd7 100644 --- a/zwave/CHANGELOG.md +++ b/zwave/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.4.2 + +- Improve error message when using documented network_key + ## 0.4.1 - Fix optional instance parameter diff --git a/zwave/config.json b/zwave/config.json index 58879fa..c1a0206 100644 --- a/zwave/config.json +++ b/zwave/config.json @@ -1,6 +1,6 @@ { "name": "OpenZWave", - "version": "0.4.1", + "version": "0.4.2", "slug": "zwave", "description": "Control a ZWave network with Home Assistant", "arch": ["amd64", "i386", "armhf", "armv7", "aarch64"], diff --git a/zwave/rootfs/etc/cont-init.d/network_key.sh b/zwave/rootfs/etc/cont-init.d/network_key.sh index 7a91ab1..8e945b3 100644 --- a/zwave/rootfs/etc/cont-init.d/network_key.sh +++ b/zwave/rootfs/etc/cont-init.d/network_key.sh @@ -5,5 +5,19 @@ readonly DOCS_EXAMPLE_KEY="0x2e, 0xcc, 0xab, 0x1c, 0xa3, 0x7f, 0x0e, 0xb5, 0x70, 0x71, 0x2d, 0x98, 0x25, 0x43, 0xee, 0x0c" if [[ "${DOCS_EXAMPLE_KEY}" == "$(bashio::config 'network_key')" ]]; then - bashio::exit.nok "Network key from the example documentation used. Please create an unique one!" + bashio::log.fatal + bashio::log.fatal 'The add-on detected that the Z-Wave network key used' + bashio::log.fatal 'is from the documented example.' + bashio::log.fatal + bashio::log.fatal 'Using this key is insecure, because it is publicly' + bashio::log.fatal 'listed in the documentation.' + bashio::log.fatal + bashio::log.fatal 'Please check the add-on documentation on how to' + bashio::log.fatal 'create your own, secret, "network_key" and replace' + bashio::log.fatal 'the one you have configured.' + bashio::log.fatal + bashio::log.fatal 'Click on the "Documentation" tab in the OpenZWave' + bashio::log.fatal 'add-on panel for more information.' + bashio::log.fatal + bashio::exit.nok fi