OpenMQTTGateway v1.4.0
What's Changed
Adaptive scanning
This release brings a very interesting feature for Bluetooth Low Energy scanning.
You may have already asked yourself, what should I set for the interval between my scans? Do I use passive or active scanning? Or how do these parameters impact the battery life of my sensors?
To remove these questions, @DigiH and I have integrated an innovative function - Adaptive scanning
Adaptive scanning will decide automatically following your devices if you need to use passive/active/continuous scanning.
For example, a door or a PIR sensor will require continuous scanning, so if detected, the gateway will reduce its time between scans to the minimum. Or your devices may also require active scanning to retrieve data. The gateway will trigger active scans at regular intervals in this case.
Behind the scenes, a big work on device categorization and analysis has been done in Theengs Decoder to enable this feature.
Why are we doing this?
Increase your sensors' battery life, decrease network traffic, and reduce gateway power consumption.
See below in Home Assistant how the interval is automatically adapted after the detection of a PIR sensor nearby.
This new feature is activated by default, you can deactivate it, and the gateway will go directly into continuous active scanning.
Consequently, the esp32ble-dev-cont
environment has been merged into esp32ble-dev
, and the "Active scan" command has been removed. You can remove the topic from your broker to delete it from the controller.
Theengs Plug
Also, this release brings support for the second RGB Led of the Theengs Plug alongside the capability to reset at the start. I encourage Theengs Plug users to update following this guide.
New boards
New BLE devices
Devices | Model | Measurements |
---|---|---|
Polar | H10 Chest strap | activity heart rate |
Features
- [HA Discovery] - Optimize low power mode discovery by @1technophile in #1443
- [ONOFF] Set power indicator status at start by @1technophile in #1456
- [LED RGB] Enable ON OFF Led power display depending on actuator status by @1technophile in #1451
- [BT] Adaptive scan by @1technophile in #1440
- [BT] Continuous active scanning when adaptive scanning is false by @1technophile in #1448
- [BT] Improve conditions of adaptive scanning by @1technophile in #1450
- [BT] Bump decoder to v1.2.0 by @1technophile in #1454
- [BT] Active Scan Interval by @DigiH in #1433
- [BT] BLE Tag properties visibility by @DigiH in #1432
- [BT] SwitchBot Contact Sensor Counters by @DigiH in theengs/decoder#283
- [BT] Polar H10 Heart Rate Sensor by @DigiH in theengs/decoder#274
Docs
- [DOCS] Add reset time and low power mode indications by @1technophile in #1452
- [DOCS] - Add nightly builds link by @1technophile in #1441
- First Pass - Added availability_topic support by @NorthernMan54 in #1442
Miscellaneous
- [LPM] Add capability to deactivate the function at build time by @1technophile in #1449
- [LPM] - Fix reboot loop when low power is used by @1technophile in #1444
- [LPM] - Update state by @1technophile in #1445
- [WIFI] Increase delay between first wifi connection attempt by @1technophile in #1446
- [TRIGGER] Enable reset at the start when InputGPIO is used by @1technophile in #1447
- Add missing ThingPulse envs by @marcelstoer in #1455
- Removed availability reporting for non-local sensors ie Bluetooth sensors by @NorthernMan54 in #1453
- [CI] Only build doc and binaries on owner repository by @1technophile in #1434
- Bump http-cache-semantics from 4.1.0 to 4.1.1 by @dependabot in #1435
New Contributors
- @xe5700 made their first contribution in #1429
- @marcelstoer made their first contribution in #1455
Full Changelog: v1.3.0...v1.4.0