{"id":19902002,"url":"https://github.com/jayqizone/homebridge-command-bulb","last_synced_at":"2026-04-17T06:33:53.102Z","repository":{"id":57265128,"uuid":"93255358","full_name":"jayqizone/homebridge-command-bulb","owner":"jayqizone","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-06T05:34:48.000Z","size":5,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-13T06:35:52.086Z","etag":null,"topics":["executor","homebridge"],"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/jayqizone.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":"2017-06-03T15:02:52.000Z","updated_at":"2024-05-31T08:40:48.000Z","dependencies_parsed_at":"2022-08-25T03:40:35.534Z","dependency_job_id":null,"html_url":"https://github.com/jayqizone/homebridge-command-bulb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jayqizone/homebridge-command-bulb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayqizone%2Fhomebridge-command-bulb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayqizone%2Fhomebridge-command-bulb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayqizone%2Fhomebridge-command-bulb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayqizone%2Fhomebridge-command-bulb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jayqizone","download_url":"https://codeload.github.com/jayqizone/homebridge-command-bulb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayqizone%2Fhomebridge-command-bulb/sbom","scorecard":{"id":509171,"data":{"date":"2025-08-11","repo":{"name":"github.com/jayqizone/homebridge-command-bulb","commit":"0ad269b2cdbdba135d465a035f13ad687c4115e7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/4 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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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"}}]},"last_synced_at":"2025-08-20T00:05:20.202Z","repository_id":57265128,"created_at":"2025-08-20T00:05:20.202Z","updated_at":"2025-08-20T00:05:20.202Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31918649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["executor","homebridge"],"created_at":"2024-11-12T20:16:51.344Z","updated_at":"2026-04-17T06:33:53.078Z","avatar_url":"https://github.com/jayqizone.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# homebridge-command-bulb\n\n[![npm version](https://badge.fury.io/js/homebridge-command-bulb.svg)](https://badge.fury.io/js/homebridge-command-bulb)\n\n在 HomeKit 中创建虚拟设备（灯），映射灯的亮度值到自定义的脚本上\n\nNeed I Say More?\n\nYeah：搭配「场景」使用，可以自定义语音指令，可参阅 [歪用 HomeKit 让 Siri 更「听话」](https://sspai.com/post/39524)\n\n## 配置\n\nHomebridge 配置如下：\n\n```json\n{\n    \"platforms\": [\n        {\n            \"platform\": \"CommandPlatform\",\n            \"directory\": \"~/.homebridge/commands\",\n            \"tg_token\": \"\",\n            \"tg_chat_id\": \"\",\n            \"proxy\": \"http://localhost:8888\"\n        }\n    ]\n}\n```\n\n- 需要自己创建 Shell 脚本目录，默认为`~/.homebridge/commands`\n- Telegram token 需要通过 @BotFather 申请；chat id 可以通过 @get\\_id\\_bot 获取\n- 插件连接 Telegram 通常需要 proxy，请科学解决。如果是 socks proxy 的话可以用 privoxy 转换为 http proxy\n\n重启 Homebridge 后会添加两个灯，「Command Bulb」和「Probe Bulb」，前者用于执行命令，后者用于排除模糊指令干扰（没有其它用处，请无视它的存在）\n\n## 脚本规则\n\n**脚本应具有可执行权限**，约定先于配置，脚本前缀、后缀采用如下规则：\n\n- 前缀（前两位，01 - 99）用于映射亮度，比如「01」对应亮度为 1，此外，所有前缀为「01」的脚本都会被执行，可以一次执行多个独立脚本。预留了亮度为 0 和 100 两个值用于标识「成功 / 失败」，所以不要用「00」作为前缀\n- 后缀用于辅助功能，目前是用于 Telegram 推送消息（在配置了相关参数的情况下）\n\t- 「.ok」表示执行成功时推送「Command: xxx OK!」。注意，默认情况下，执行过程中存在 stderr 不会被认为是失败\n\t- 「.out」表示推送 stdout\n    - 「.err」表示推送 stderr，并且执行过程中存在 stderr 会被认为是失败\n\t- 如果失败，总是会推送「Command: xxx Failed!」消息，无需后缀\n\t- 多个后缀可组合，如「.ok.out」，会推送成功和标准输出两条消息\n\t- 其它未定义的及「.sh」可有可无，会忽略","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayqizone%2Fhomebridge-command-bulb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjayqizone%2Fhomebridge-command-bulb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayqizone%2Fhomebridge-command-bulb/lists"}