{"id":18188054,"url":"https://github.com/hypfer/ble2mqtt","last_synced_at":"2025-06-14T09:06:03.273Z","repository":{"id":70162463,"uuid":"199726958","full_name":"Hypfer/ble2mqtt","owner":"Hypfer","description":null,"archived":false,"fork":false,"pushed_at":"2019-10-22T11:02:11.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-14T09:03:39.359Z","etag":null,"topics":[],"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/Hypfer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"publiccode":null,"codemeta":null},"funding":{"github":"hypfer","ko_fi":"hypfer"}},"created_at":"2019-07-30T21:02:57.000Z","updated_at":"2019-10-22T11:02:13.000Z","dependencies_parsed_at":"2023-04-21T17:09:58.877Z","dependency_job_id":null,"html_url":"https://github.com/Hypfer/ble2mqtt","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":0.5,"last_synced_commit":"0d0e4e6c172bf0dfffcb17fb5e0846030cc08f34"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hypfer/ble2mqtt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypfer%2Fble2mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypfer%2Fble2mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypfer%2Fble2mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypfer%2Fble2mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hypfer","download_url":"https://codeload.github.com/Hypfer/ble2mqtt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hypfer%2Fble2mqtt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259790458,"owners_count":22911547,"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":[],"created_at":"2024-11-03T02:04:29.033Z","updated_at":"2025-06-14T09:06:03.248Z","avatar_url":"https://github.com/Hypfer.png","language":"JavaScript","funding_links":["https://github.com/sponsors/hypfer","https://ko-fi.com/hypfer"],"categories":[],"sub_categories":[],"readme":"# ble2mqtt\n\n**Deprecated** Use [https://github.com/Hypfer/Cybele](https://github.com/Hypfer/Cybele)\n\nble2mqtt is a ~~simple~~ way to integrate bluetooth smart devices into home assistant as well as other smarthome systems.\n\nIt aims to be a leaner and/or faster alternative to [room-assistant](https://github.com/mKeRix/room-assistant) as well as [bt-mqtt-gateway](https://github.com/zewelor/bt-mqtt-gateway)\n\nCurrently, it's focused on devices which report all the relevant data in their advertisement packets.\nTherefore, ble2mqtt doesn't interfer with the devices in any way. It just observes and reports to ~~the authorities~~ the mqtt broker.\n\n## Supported Devices\n* Any Bluetooth Device with a static mac (e.g. BLE Beacons like the Gigaset G-Tag)\n* Oral-B Smart Toothbrushes (though I don't know why)\n* Xiaomi Mi Body Composition Scale (Also known as MIBCS, Mi Scale V2 etc.)\n\nWhere it's possible, ble2mqtt tries to make use of the Home Assistant autodiscovery feature\n\n## Requirements\nPlease note that ble2mqtt currently requires a nodejs version \u003c= 9 since it's using the noble library which hasn't been updated to compile against the latest nodejs versions.\n\nApart from that you will also need a suitable bluetooth dongle. You can check if it can receive anything by running `hcitool lescan`\n\n## Installation\n* git clone\n* npm install\n* copy config.default.json to config.json and edit for your setup\n\nSince using raw sockets apparently requires root, you might need to run ``sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)`` if you want to run ble2mqtt as a regular user like a reasonable human being.\n\nFor persistence, you'll find a simple systemd unit file in the deployment folder. Don't forget to specify the correct paths.\n\n## Misc\n\nThis is basically a prototype thrown right into production. Don't be surprised if things break. It works for me™\n\nThere are TODOs sprinkled all around the code. If you feel like it you might want to take a look at those.\n\n**Please do not ask for support. You have to figure it out by yourself.** At least the code is free ¯\\\\_(ツ)_/¯\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypfer%2Fble2mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypfer%2Fble2mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypfer%2Fble2mqtt/lists"}