[BT] - Adaptive scan (#1440)
* [BT] Adaptive scan Add adaptive scan to avoid users setting parameters and deduct automatically the scan requirements from the list of devices --------- Co-authored-by: DigiH <github@digih.net>
This commit is contained in:
1 parent
05f83c5f80
commit
f283327998
7 files changed
+51
-44
No files matched your search
+6
-6
@@ -134,11 +134,15 @@ With Home Assistant, this command is directly available through MQTT auto discov
|
||||
|
||||
The gateway will publish only the detected sensors like Mi Flora, Mi jia, LYWSD03MMC... and not the other BLE devices. This is useful if you don't use the gateway for presence detection but only to retrieve sensors data.
|
||||
|
||||
## Setting if the gateway use active or passive scanning
|
||||
## Setting if the gateway use adaptive scanning
|
||||
|
||||
Adaptive scanning lets the gateway decide for you the best passive `interval` and active `intervalacts` scan interval, depending on the characteristics of your devices.
|
||||
The gateway retrieves your devices' information from [Theengs Decoder](https://decoder.theengs.io) and adapts its parameters accordingly.
|
||||
For example a door or a PIR sensor will require continuous scanning, so if detected the gateway is going to reduce its time between scans to the minimum. Or your devices may also require active scanning to retrieve data, in this case the gateway will also trigger active scans at regular intervals.
|
||||
|
||||
If you want to change this characteristic (default:true):
|
||||
|
||||
`mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/config -m '{"activescan":false}'`
|
||||
`mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/config -m '{"adaptivescan":false}'`
|
||||
|
||||
::: tip
|
||||
With Home Assistant, this command is directly available through MQTT auto discovery as a switch into the HASS OpenMQTTGateway device entities list.
|
||||
@@ -154,10 +158,6 @@ If you want to change the time between active scans you can change it by MQTT. F
|
||||
|
||||
`mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/config -m '{"intervalacts":300000}'`
|
||||
|
||||
::: tip
|
||||
Setting `{"intervalacts":0}` deactivates intermittent active scanning to only have consistent passive scanning if `'{"activescan":false}'`.
|
||||
:::
|
||||
|
||||
## Setting if the gateway connects to BLE devices eligibles on ESP32
|
||||
|
||||
If you want to change this characteristic:
|
||||
|
||||
Reference in new issue
Block a user