Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ services:
DISCOVERY_TOPIC: homeassistant
DISCOVERY_DEVICE_NAME: TheengsGateway
DISCOVERY_FILTER: "[IBEACON,GAEN,MS-CDP]"
DISCOVERY_DIAGNOSTIC: true
SCANNING_MODE: active
ADAPTER: hci0
TIME_SYNC: "[]"
Expand Down Expand Up @@ -123,6 +124,7 @@ docker run --rm \
-e DISCOVERY_TOPIC=homeassistant \
-e DISCOVERY_DEVICE_NAME=TheengsGateway \
-e DISCOVERY_FILTER="[IBEACON]" \
-e DISCOVERY_DIAGNOSTIC=true \
-e SCANNING_MODE=active \
-e ADAPTER=hci0 \
-e TIME_SYNC="[]" \
Expand Down
8 changes: 8 additions & 0 deletions chroot/opt/venv/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ if hasvalue $HASS_DISCOVERY; then
fi
fi

if hasvalue $DISCOVERY_DIAGNOSTIC; then
if ! [[ $DISCOVERY_DIAGNOSTIC =~ (true|false) ]]; then
echo "WARNING : Wrong value for DISCOVERY_DIAGNOSTIC environment variable, will use default - false"
DISCOVERY_DIAGNOSTIC=false
fi
fi

if hasvalue $PASSIVE_SCAN; then
# Deprecation warning, this was written before 0.5.0 was released , will use SCANNIN_MODE in future
echo "PASSIVE_SCAN : Deprecated environment variable, this variable will be removed in future versions, please use SCANNING_MODE=active|passive"
Expand Down Expand Up @@ -216,6 +223,7 @@ echo "Creating config at $CONFIG ..."
"discovery_topic": "${DISCOVERY_TOPIC:-homeassistant/sensor}",
"discovery_device_name": "${DISCOVERY_DEVICE_NAME:-TheengsGateway}",
"discovery_filter": "${DISCOVERY_FILTER:-[IBEACON]}",
"discovery_diagnostic": ${DISCOVERY_DIAGNOSTIC:-false},
"scanning_mode": "${SCANNING_MODE:-active}",
"adapter": "${ADAPTER:-hci0}",
"time_sync": "${TIME_SYNC:-[]}",
Expand Down
1 change: 1 addition & 0 deletions examples/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ services:
DISCOVERY_TOPIC: homeassistant
DISCOVERY_DEVICE_NAME: TheengsGateway
DISCOVERY_FILTER: "[IBEACON]"
DISCOVERY_DIAGNOSTIC: true
SCANNING_MODE: active
ADAPTER: hci0
BINDKEYS: "{}"
Expand Down