Fix script hm (#215)

* Fix script

* Add port

* Update CHANGELOG.md

* Update config.json
This commit is contained in:
Pascal Vizeli
2017-12-16 03:10:53 +01:00
committed by GitHub
parent 728e8c9d38
commit 116f5b3436
3 changed files with 8 additions and 5 deletions

View File

@@ -1,10 +1,12 @@
# Changelog
## 2.29.22-1-p1
- Fix bug in script
- Add wired port into config
## 2.29.22-1-p1
- Change config logic
- Add support for wired
## 2.29.22-1-p0
- Initial

View File

@@ -1,6 +1,6 @@
{
"name": "HomeMatic OCCU",
"version": "2.29.22-1-p1",
"version": "2.29.22-1-p2",
"slug": "homematic",
"description": "HomeMatic central based on OCCU",
"url": "https://home-assistant.io/addons/homematic/",
@@ -10,7 +10,8 @@
"auto_uart": true,
"gpio": true,
"ports": {
"2001/tcp": 2001
"2001/tcp": 2001,
"2000/tcp": 2000
},
"options": {
"rf_enable": true,

View File

@@ -4,9 +4,9 @@ set -e
CONFIG_PATH=/data/options.json
RF_ENABLE=$(jq --raw-output '.rf_enable' $CONFIG_PATH)
RF_DEVICES=$(jq --raw-output '.rf | lenght' $CONFIG_PATH)
RF_DEVICES=$(jq --raw-output '.rf | length' $CONFIG_PATH)
WIRED_ENABLE=$(jq --raw-output '.wired_enable' $CONFIG_PATH)
WIRED_DEVICES=$(jq --raw-output '.wired | lenght' $CONFIG_PATH)
WIRED_DEVICES=$(jq --raw-output '.wired | length' $CONFIG_PATH)
WAIT_PIDS=()
# Init folder