ioBroker adapter to monitor Bluetooth Low Energy (BLE) beacons
npm install iobroker.ble
ioBroker.ble
=================
Monitor Bluetooth Low Energy (BLE) beacons and record their information.
Currently, only recording advertised service data is supported. You can monitor which services are advertised by using the nRF Connect app (service data UUIDs).
Connecting and reading/writing service chararcteristics will be supported in a future version.
This adapter needs additional libraries to compile. See https://github.com/sandeepmistry/noble#prerequisites for detailed instructions.
On Raspberry Pi and similar, this should do it: sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin
If the adapter starts but won't connect to your bluetooth hardware, please check the info.driverState state in ioBroker. If it is unauthorized, you need to give node additional permissions. For Linux, this is as simple as
``bashwhich node
sudo setcap cap_net_raw+eip $(eval readlink -f )`libcap2-bin
which requires to be installed.
If you have any device transmitting specially encoded information via advertisements, feel free to create a PR with a new plugin for that.
: All xiaomi bluetooth sensors, including
* Flower Care plant sensor
* Mijia Temperature and Humidity sensor
* Mosquito Repellent
* "mi-flora": Original plugin for the flower care plant sensor, now aliased to "xiaomi"
* "ruuvi-tag": Ruuvi Tag multisensor with firmware versions v1 and v2. Untested, please give feedback!
* "bthome": Sensors using the BTHome protocol. For now this is limited to the v2 revision of the protocol and does not support encrypted packets.Changelog
$3
* Fixed compatibility issues with newer OS and Node.js versions (#874)$3
* BREAKING: Dropped support for Node.js 16 and below
* Add support for the BTHome v2 protocol (unencrypted packets only)$3
* Very experimental support for scanning on a remote host (#793)
* Another attempt at updating noble. Hopefully this version works now...$3
* Updated noble again. This should fix the automatic rebuild after Node.js upgrades and the previous performance issues.$3
* Downgraded the noble dependency again because of performance issues$3
* Updated the noble dependency. This should fix the automatic rebuild after Node.js upgrades.$3
* The option to allow recording new devices is now available in the config dialog. When the adapter starts, it will be disabled, and when enabled, it will be automatically disabled after 5 minutes (#730, #729)
* Fix: RSSI will now be updated, even if it was unchanged (#493)
* Dependency updates, lots of dependency updates...$3
* Scanning is now done in a separate process, so uncatchable errors in noble no longer bring down the main process$3
* The pressure value reported by Ruuvi Tags is now parsed with two decimal places$3
* Added a more helpful error message if the adapter terminates with error EAFNOSUPPORT$3
* Ignore unhandled out of range error somewhere in noble$3
* Utilize JS-Controller's auto module rebuild if possible$3
* Fixed a crash that happens when noble can not be loaded.$3
* Avoid setting undefined as a state value to be compatible with JS-Controller 3.0$3
* Fixed typo in Ruuvi Tag plugin: motionCounter -> movementCounter$3
* Removed compact support. noble sometimes throws errors in callbacks that cannot be handled and would bring the whole compact group down.
* Added support for the Xiaomi Kettle
* Encrypted packets are no longer decoded (for now) to avoid creating thousands of unknown (0xabcd) states$3
* Fixed crash in JS-Controller 2.0$3
* xiaomi plugin: test the received data instead of relying on MAC prefixes$3
* Add e7:2e:00 as an alternative mac prefix for MiTemperature$3
* Fix compact mode crashes$3
* Devices without service data but with manufacturer data are no longer treated as empty
* _default plugin: Create states for manufacturer data
* ruuvi-tag plugin: Set "Ruuvi Tag" as the default name for the device object$3
* ruuvi-tag plugin: Fix parsing of data format 3 and 5$3
* Add 80:ea:ca as an alternative mac prefix for FlowerCare$3
* Add 3f:5b:7d as an alternative mac prefix for the Xiaomi watch$3
* Added support for the Xiaomi Mosquito Repellent (read-only!)$3
* Removed dependency to admin instance on slaves
* Several dependency updates$3
* Add MiTemperature watch with E-Ink display$3
* Add 58:2d:34 as an alternative mac prefix for MiTemperature$3
* Support MaterializeCSS (Admin v3)
* Support compact mode
* Use @iobroker/testing for tests$3
* Add NodeJS 10 support
* Add an option to disallow new devices$3
* Bugfix: Preserving object properties works again$3
* Cache objects for a short while instead of retrieving them from ioBroker all the time
* Support negative temperatures from Xiaomi devices$3
* Fixed isHandling for the ruuvi-tag plugin$3
* Restored accidentally deleted mi-flora plugin.$3
* (JonasR & AlCalzone) Added support for the Ruuvi Tag with the ruuvi-tag plugin$3
* Fixed the parsing of temperature+humidity packets from the Xiaomi temperature sensor$3
* Forgot to load legacy mi-flora plugin
* Fixed an error when a plugin defines no objects$3
* (zuvielx9 & AlCalzone) Support for all Xiaomi bluetooth sensors using the xiaomi plugin
* reworked plugin system slightly$3
* Bugfix: Next attempt at preserving object properties like history and name$3
* Bugfix: Keep history settings by not overriding existing objects
* Bugfix: When plugins return undefined`, ignore the packetCopyright (c) 2017-2025 AlCalzone
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.