{"id":13799566,"url":"https://github.com/eschava/node-red-contrib-xiaomi-ble","last_synced_at":"2026-01-18T07:57:56.602Z","repository":{"id":65462352,"uuid":"136331903","full_name":"eschava/node-red-contrib-xiaomi-ble","owner":"eschava","description":"Xiaomi Bluetooth4 (BLE) sensors","archived":false,"fork":false,"pushed_at":"2021-01-19T11:24:17.000Z","size":19,"stargazers_count":20,"open_issues_count":14,"forks_count":15,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-10-06T11:32:36.935Z","etag":null,"topics":["ble","bluet","bluetooth","miflora","mijia","node-red","nodered","xia","xiaomi"],"latest_commit_sha":null,"homepage":"","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/eschava.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}},"created_at":"2018-06-06T13:21:58.000Z","updated_at":"2024-11-07T10:11:22.000Z","dependencies_parsed_at":"2023-01-24T15:45:28.968Z","dependency_job_id":null,"html_url":"https://github.com/eschava/node-red-contrib-xiaomi-ble","commit_stats":{"total_commits":21,"total_committers":3,"mean_commits":7.0,"dds":"0.19047619047619047","last_synced_commit":"b4709e70b9bbb1103302b6378234cc8703ccd984"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eschava/node-red-contrib-xiaomi-ble","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eschava%2Fnode-red-contrib-xiaomi-ble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eschava%2Fnode-red-contrib-xiaomi-ble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eschava%2Fnode-red-contrib-xiaomi-ble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eschava%2Fnode-red-contrib-xiaomi-ble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eschava","download_url":"https://codeload.github.com/eschava/node-red-contrib-xiaomi-ble/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eschava%2Fnode-red-contrib-xiaomi-ble/sbom","scorecard":{"id":382342,"data":{"date":"2025-08-11","repo":{"name":"github.com/eschava/node-red-contrib-xiaomi-ble","commit":"b4709e70b9bbb1103302b6378234cc8703ccd984"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 2/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T15:45:23.287Z","repository_id":65462352,"created_at":"2025-08-18T15:45:23.287Z","updated_at":"2025-08-18T15:45:23.287Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28533512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ble","bluet","bluetooth","miflora","mijia","node-red","nodered","xia","xiaomi"],"created_at":"2024-08-04T00:01:04.053Z","updated_at":"2026-01-18T07:57:56.579Z","avatar_url":"https://github.com/eschava.png","language":"JavaScript","funding_links":[],"categories":["Nodes"],"sub_categories":["I/O"],"readme":"# node-red-contrib-xiaomi-ble\n\nThis Node-Red module contains single \"Xiaomi BLE\" node that gets all known data from Xiaomi BLE (Bluetooth 4) devices \nusing Bluetooth 4 compatible adapter.\n\nCurrently supported devices are:\n* MiFlora - Xiaomi Mi plant sensor\n* Xiaomi Mijia Bluetooth Temperature Humidity Sensor\n\n## Installation\n\nThis module requires [noble](https://github.com/noble/noble) library. It will be installed automatically but in case \nof any problems you can try to install it manually using corresponding instructions.\n\nTo install this module use Node-Red GUI installer or console command:\n\n```\nnpm install node-red-contrib-xiaomi-ble\n```\n\n## Usage\n\n**Configuration:** Xiaomi BLE node needs only bluetooth address of devices (optional, if it's omitted then incoming message should have **address** property)\n\n**Input message:** just triggers requesting data from the sensor. Optional parameters:\n* _address_ - override address of the device from configuration.\n* _scan_ - re-lookup for device even if it was already found before.\n\n**Output message:** **msg.payload** object of the output message could contain next fields:\n* _temperature_ - temperature from sensor\n* _battery_ - battery level in percents\n* _humidity_ - Mijia Temperature Humidity device only\n* _light_, _moisture_, _conductivity_ - MiFlora device only\n\n## Linux\n\nOn Linux bluetooth adapter could be used by root user only. \n\nTo run node-red without root/sudo use instructions from [noble](https://github.com/noble/noble#running-on-linux)\n\n\n## Version history\n\n\n1.0.0 Initial release\n\n1.1.0 Changed format of output message\n\n1.2.0 Device's address could be specified in input message + configurable scanning timeout\n\n1.2.1 Memory leak fixed\n\n1.2.2 Added 'scan' parameter to message to force scanning\n\n1.2.3 Bug-fix release\n\n1.2.4 Change noble dependency to @abandonware/noble as former package is unmaintained\n\n1.3.0 Added support of Xiaomi Mijia Bluetooth Thermometer 2 (aka LYWSD03MMC)\n\n1.3.1 Protection from the \"Peripheral already connected\" error\n\n1.3.2 Negative temperature support\n\n1.3.3 Original message object is preserved","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feschava%2Fnode-red-contrib-xiaomi-ble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feschava%2Fnode-red-contrib-xiaomi-ble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feschava%2Fnode-red-contrib-xiaomi-ble/lists"}