{"id":16759176,"url":"https://github.com/alcalzone/iobroker.ble","last_synced_at":"2025-03-15T13:31:03.937Z","repository":{"id":24809541,"uuid":"102478191","full_name":"AlCalzone/ioBroker.ble","owner":"AlCalzone","description":"Monitor Bluetooth Low Energy beacons","archived":false,"fork":false,"pushed_at":"2024-04-11T07:13:18.000Z","size":7475,"stargazers_count":41,"open_issues_count":64,"forks_count":14,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-14T07:56:16.372Z","etag":null,"topics":["beacon","ble","bluetooth","iobroker"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlCalzone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"AlCalzone","patreon":"AlCalzone","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-09-05T12:25:24.000Z","updated_at":"2023-11-30T19:00:18.000Z","dependencies_parsed_at":"2023-02-19T01:46:13.650Z","dependency_job_id":"68cf5e5b-b3e1-4808-8a83-2ec57c0b94f8","html_url":"https://github.com/AlCalzone/ioBroker.ble","commit_stats":{"total_commits":766,"total_committers":11,"mean_commits":69.63636363636364,"dds":0.6540469973890339,"last_synced_commit":"70f905b08c1f4d669eec104aa4cc671c2ea83005"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlCalzone%2FioBroker.ble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlCalzone%2FioBroker.ble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlCalzone%2FioBroker.ble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlCalzone%2FioBroker.ble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlCalzone","download_url":"https://codeload.github.com/AlCalzone/ioBroker.ble/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243735808,"owners_count":20339533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beacon","ble","bluetooth","iobroker"],"created_at":"2024-10-13T04:07:31.329Z","updated_at":"2025-03-15T13:31:03.931Z","avatar_url":"https://github.com/AlCalzone.png","language":"JavaScript","funding_links":["https://github.com/sponsors/AlCalzone","https://patreon.com/AlCalzone"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"admin/ble.png\" height=\"48\" /\u003e ioBroker.ble\n=================\n\n![Build Status](https://action-badges.now.sh/AlCalzone/ioBroker.tradfri)\n\nMonitor Bluetooth Low Energy (BLE) beacons and record their information. \nCurrently, only recording *advertised* service data is supported. You can monitor which services are advertised by using the nRF Connect app (service data UUIDs).\nConnecting and reading/writing service chararcteristics will be supported in a future version.\n\n## Installation\n![Number of Installations](http://iobroker.live/badges/ble-installed.svg?break_cache=1) ![Number of Installations](http://iobroker.live/badges/ble-stable.svg?break_cache=1)\n\nThis adapter needs additional libraries to compile. See https://github.com/sandeepmistry/noble#prerequisites for detailed instructions.\nOn Raspberry Pi and similar, this should do it: `sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin`\n\nIf 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\n```bash\nsudo setcap cap_net_raw+eip $(eval readlink -f `which node`)\n```\nwhich requires `libcap2-bin` to be installed.\n\n## Configuration\nIf you have multiple bluetooth devices on your system, select the one to use from the dropdown.\nIn the textbox below, enter all UUIDs of the advertised services you want to record (as found in the nRF Connect app).\n\n## Plugin system\nThe adapter supports extension via plugins. Those define which advertised services should be listened to and how to translate the data. The plugin structure is defined in https://github.com/AlCalzone/ioBroker.ble/blob/master/src/plugins/plugin.ts and an example of a working plugin is defined here https://github.com/AlCalzone/ioBroker.ble/blob/master/src/plugins/_default.ts\n\nIf you have any device transmitting specially encoded information via advertisements, feel free to create a PR with a new plugin for that.\n\n### Supported plugins\n* `\"xiaomi\"`: All xiaomi bluetooth sensors, including \n  * [Flower Care plant sensor](https://xiaomi-mi.com/sockets-and-sensors/xiaomi-huahuacaocao-flower-care-smart-monitor/)\n  * [Mijia Temperature and Humidity sensor](https://www.banggood.com/Xiaomi-Mijia-Bluetooth-Thermometer-Hygrometer-with-LCD-Screen-Magnetic-Suction-Wall-Stickers-p-1232396.html?cur_warehouse=USA)\n  * [Mosquito Repellent](https://www.aliexpress.com/item/32883859984.html)\n* `\"mi-flora\"`: Original plugin for the flower care plant sensor, now aliased to `\"xiaomi\"`\n* `\"ruuvi-tag\"`: [Ruuvi Tag](https://tag.ruuvi.com/) multisensor with firmware versions v1 and v2. **Untested, please give feedback!** \n* `\"bthome\"`: Sensors using the [BTHome](https://bthome.io) protocol. For now this is limited to the `v2` revision of the protocol and does not support encrypted packets.\n\n## Changelog\n\u003c!--\n\tPlaceholder for next release:\n\t### __WORK IN PROGRESS__\n--\u003e\n### 0.14.1 (2025-02-09)\n* Fixed compatibility issues with newer OS and Node.js versions (#874)\n\n### 0.14.0 (2023-12-11)\n* **BREAKING:** Dropped support for Node.js 16 and below\n* Add support for the BTHome v2 protocol (unencrypted packets only)\n\n### 0.13.4 (2023-07-06)\n* Very experimental support for scanning on a remote host (#793)\n* Another attempt at updating `noble`. Hopefully this version works now...\n\n### 0.13.3 (2023-02-05)\n* Updated `noble` again. This should fix the automatic rebuild after Node.js upgrades and the previous performance issues.\n\n### 0.13.2 (2023-01-02)\n* Downgraded the `noble` dependency again because of performance issues\n\n### 0.13.1 (2022-12-19)\n* Updated the `noble` dependency. This should fix the automatic rebuild after Node.js upgrades.\n\n### 0.13.0 (2022-04-27)\n* 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)\n* Fix: RSSI will now be updated, even if it was unchanged (#493)\n* Dependency updates, lots of dependency updates...\n\n### 0.12.0 (2020-10-29)\n* Scanning is now done in a separate process, so uncatchable errors in `noble` no longer bring down the main process\n\n### 0.11.8 (2020-08-25)\n* The pressure value reported by Ruuvi Tags is now parsed with two decimal places\n\n### 0.11.7 (2020-08-20)\n* Added a more helpful error message if the adapter terminates with error `EAFNOSUPPORT`\n\n### 0.11.6 (2020-05-07)\n* Ignore unhandled out of range error somewhere in `noble`\n\n### 0.11.4 (2020-04-23)\n* Utilize JS-Controller's auto module rebuild if possible\n\n### 0.11.3 (2020-04-22)\n* Fixed a crash that happens when `noble` can not be loaded.\n\n### 0.11.2 (2020-04-19)\n* Avoid setting `undefined` as a state value to be compatible with JS-Controller 3.0\n\n### 0.11.1 (2020-04-11)\n* Fixed typo in Ruuvi Tag plugin: `motionCounter` -\u003e `movementCounter`\n\n### 0.11.0 (2020-03-25)\n* Removed compact support. `noble` sometimes throws errors in callbacks that cannot be handled and would bring the whole compact group down.\n* Added support for the Xiaomi Kettle\n* Encrypted packets are no longer decoded (for now) to avoid creating thousands of `unknown (0xabcd)` states\n\n### 0.10.1 (2019-10-13)\n* Fixed crash in JS-Controller 2.0\n\n### 0.10.0 (2019-09-26)\n* `xiaomi` plugin: test the received data instead of relying on MAC prefixes\n\n### 0.9.2 (2019-09-26)\n* Add `e7:2e:00` as an alternative mac prefix for MiTemperature\n\n### 0.9.1 (2019-09-22)\n* Fix compact mode crashes\n\n### 0.9.0 (2019-09-04)\n* Devices without service data but with manufacturer data are no longer treated as empty\n* `_default` plugin: Create states for manufacturer data\n* `ruuvi-tag` plugin: Set `\"Ruuvi Tag\"` as the default name for the device object\n\n### 0.8.4 (2019-09-03)\n* `ruuvi-tag` plugin: Fix parsing of data format 3 and 5\n\n### 0.8.3 (2019-08-26)\n* Add `80:ea:ca` as an alternative mac prefix for FlowerCare\n\n### 0.8.2 (2019-08-14)\n* Add `3f:5b:7d` as an alternative mac prefix for the Xiaomi watch\n\n### 0.8.1 (2019-07-26)\n* Added support for the Xiaomi Mosquito Repellent (read-only!)\n\n### 0.7.4 (2019-07-03)\n* Removed dependency to admin instance on slaves\n* Several dependency updates\n\n### 0.7.3 (2019-04-05)\n* Add MiTemperature watch with E-Ink display\n\n### 0.7.2 (2019-04-05)\n* Add `58:2d:34` as an alternative mac prefix for MiTemperature\n\n### 0.7.0 (2019-02-05)\n* Support MaterializeCSS (Admin v3)\n* Support compact mode\n* Use @iobroker/testing for tests\n\n### 0.6.0 (2018-12-23)\n* Add NodeJS 10 support\n* Add an option to disallow new devices\n\n### 0.5.5 (2018-11-29)\n* Bugfix: Preserving object properties works again\n\n### 0.5.3 (2018-11-23)\n* Cache objects for a short while instead of retrieving them from ioBroker all the time\n* Support negative temperatures from Xiaomi devices\n\n### 0.5.2 (2018-03-28)\n* Fixed `isHandling` for the `ruuvi-tag` plugin\n\n### 0.5.1 (2018-03-28)\n* Restored accidentally deleted `mi-flora` plugin.\n\n### 0.5.0 (2018-03-27)\n* (JonasR \u0026 AlCalzone) Added support for the Ruuvi Tag with the `ruuvi-tag` plugin\n\n### 0.4.2 (2018-03-27)\n* Fixed the parsing of temperature+humidity packets from the Xiaomi temperature sensor\n\n### 0.4.1 (2018-03-24)\n* Forgot to load legacy `mi-flora` plugin\n* Fixed an error when a plugin defines no objects\n\n### 0.4.0 (2018-03-24)\n* (zuvielx9 \u0026 AlCalzone) Support for all Xiaomi bluetooth sensors using the `xiaomi` plugin\n* reworked plugin system slightly\n\n### 0.3.5 (2018-03-18)\n* Bugfix: Next attempt at preserving object properties like history and name\n\n### 0.3.4 (2018-01-01)\n* Bugfix: Keep `history` settings by not overriding existing objects\n* Bugfix: When plugins return `undefined`, ignore the packet\n\n### 0.3.3 (2017-11-24)\n* Enable logging of RSSI\n\n### 0.3.2 (2017-09-27)\n* Add * wildcard for \"all services\"\n\n### 0.3.1 (2017-09-27)\n* Bugfix: don't throw error when RSSI state doens't exist\n\n### 0.3.0 (2017-09-27)\n* Support throttling of RSSI updates\n\n### 0.2.2 (2017-09-27)\n* Bugfix: Only monitor services from _enabled_ plugins\n\n### 0.2.1 (2017-09-27)\n* Bugfix: last patch broke the service filtering\n\n### 0.2.0 (2017-09-26)\n* Modularized the adapter code into a plugin system\n* Added Mi-Flora plugin\n\n### 0.1.0 (2017-09-06)\n* Support selection of bluetooth devices\n\n### 0.0.2 (2017-09-06)\n* Store more information, improved object structure.\n\n### 0.0.1\n* initial release\n\n## License\nThe MIT License (MIT)\n\nCopyright (c) 2017-2025 AlCalzone \u003cd.griesel@gmx.net\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falcalzone%2Fiobroker.ble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falcalzone%2Fiobroker.ble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falcalzone%2Fiobroker.ble/lists"}