Skip to content

Commit 4597e7c

Browse files
authored
Undecoded default subscribe (#68)
Set the default undecoded topic to match OMG binary esp32dev-ble-mqtt-undecoded, and add docs
1 parent 2eb02cd commit 4597e7c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

TheengsGateway/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"ble_scan_time":5,
3434
"ble_time_between_scans":5,
3535
"publish_topic": "home/TheengsGateway/BTtoMQTT",
36-
"subscribe_topic": "home/TheengsGateway/+",
36+
"subscribe_topic": "home/+/BTtoMQTT/undecoded",
3737
"log_level": "WARNING",
3838
"discovery": 1,
3939
"hass_discovery": 1,

docs/use/use.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ docker run --rm \
8787
-e MQTT_USERNAME=<username> \
8888
-e MQTT_PASSWORD=<password> \
8989
-e MQTT_PUB_TOPIC=home/TheengsGateway/BTtoMQTT \
90-
-e MQTT_SUB_TOPIC=home/TheengsGateway/commands \
90+
-e MQTT_SUB_TOPIC=home/+/BTtoMQTT/undecoded \
9191
-e PUBLISH_ALL=true \
9292
-e TIME_BETWEEN=60 \
9393
-e SCAN_TIME=60 \
@@ -137,6 +137,12 @@ Example message:
137137
```
138138
If possible, the data will be decoded and published.
139139
140+
[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.
141+
142+
:::tip
143+
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.
144+
:::
145+
140146
## Home Assistant auto discovery
141147
If enabled (default), decoded devices will publish their configuration to Home Assistant to be discovered.
142148
- This can be enabled/disabled with the `-D` or `--discovery` command line argument with a value of 1 (enable) or 0 (disable).

0 commit comments

Comments
 (0)