Skip to content

Commit

Permalink
Undecoded default subscribe (#68)
Browse files Browse the repository at this point in the history
Set the default undecoded topic to match OMG binary esp32dev-ble-mqtt-undecoded, and add docs
  • Loading branch information
1technophile authored Oct 24, 2022
1 parent 2eb02cd commit 4597e7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TheengsGateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"ble_scan_time":5,
"ble_time_between_scans":5,
"publish_topic": "home/TheengsGateway/BTtoMQTT",
"subscribe_topic": "home/TheengsGateway/+",
"subscribe_topic": "home/+/BTtoMQTT/undecoded",
"log_level": "WARNING",
"discovery": 1,
"hass_discovery": 1,
Expand Down
8 changes: 7 additions & 1 deletion docs/use/use.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ docker run --rm \
-e MQTT_USERNAME=<username> \
-e MQTT_PASSWORD=<password> \
-e MQTT_PUB_TOPIC=home/TheengsGateway/BTtoMQTT \
-e MQTT_SUB_TOPIC=home/TheengsGateway/commands \
-e MQTT_SUB_TOPIC=home/+/BTtoMQTT/undecoded \
-e PUBLISH_ALL=true \
-e TIME_BETWEEN=60 \
-e SCAN_TIME=60 \
Expand Down Expand Up @@ -137,6 +137,12 @@ Example message:
```
If possible, the data will be decoded and published.
[OpenMQTTGateway](https://docs.openmqttgateway.com/), proposes a [web upload](https://docs.openmqttgateway.com/upload/web-install.html) binary `esp32dev-ble-mqtt-undecoded` that will publish directly to 'home/<gateway name>/BTtoMQTT` making it directly compatible with Theengs Gateway MQTTtoMQTT decoding feature.
:::tip
By default Theengs Gateway will listen to `home/+/BTtoMQTT/undecoded`, if you have several ESP32 gateways with OpenMQTTGateway undecoded, Theengs will pickup all of them and centralize the decoded BT sensor data in one place.
:::
## Home Assistant auto discovery
If enabled (default), decoded devices will publish their configuration to Home Assistant to be discovered.
- This can be enabled/disabled with the `-D` or `--discovery` command line argument with a value of 1 (enable) or 0 (disable).
Expand Down

0 comments on commit 4597e7c

Please sign in to comment.