{"id":15645107,"url":"https://github.com/sahilchaddha/yeelight-platform","last_synced_at":"2025-10-04T19:34:02.233Z","repository":{"id":57141655,"uuid":"155503009","full_name":"sahilchaddha/yeelight-platform","owner":"sahilchaddha","description":"Yet Another Yeelight API in node.js","archived":false,"fork":false,"pushed_at":"2022-09-20T08:18:45.000Z","size":165,"stargazers_count":57,"open_issues_count":3,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-20T05:26:02.972Z","etag":null,"topics":["light","node","xiaomi","yeelight","yeelight-api","yeelight-node"],"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/sahilchaddha.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-10-31T05:21:33.000Z","updated_at":"2024-08-21T19:45:28.000Z","dependencies_parsed_at":"2023-01-18T16:45:23.157Z","dependency_job_id":null,"html_url":"https://github.com/sahilchaddha/yeelight-platform","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sahilchaddha/yeelight-platform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahilchaddha%2Fyeelight-platform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahilchaddha%2Fyeelight-platform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahilchaddha%2Fyeelight-platform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahilchaddha%2Fyeelight-platform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sahilchaddha","download_url":"https://codeload.github.com/sahilchaddha/yeelight-platform/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sahilchaddha%2Fyeelight-platform/sbom","scorecard":{"id":795302,"data":{"date":"2025-08-11","repo":{"name":"github.com/sahilchaddha/yeelight-platform","commit":"e448887c8ad938906866a0f97de87ad77b22dcf6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 2/24 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":"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":"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":"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 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"}},{"name":"Vulnerabilities","score":0,"reason":"21 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-3gx7-xhv7-5mx3","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T08:46:39.875Z","repository_id":57141655,"created_at":"2025-08-23T08:46:39.875Z","updated_at":"2025-08-23T08:46:39.875Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278366532,"owners_count":25975089,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"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":["light","node","xiaomi","yeelight","yeelight-api","yeelight-node"],"created_at":"2024-10-03T12:04:33.629Z","updated_at":"2025-10-04T19:34:02.211Z","avatar_url":"https://github.com/sahilchaddha.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yeelight-platform\n\n[![NPM](https://nodei.co/npm/yeelight-platform.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/yeelight-platform/)\n\n[![npm](https://img.shields.io/npm/dm/yeelight-platform.svg)](https://www.npmjs.com/package/yeelight-platform)\n[![npm](https://img.shields.io/npm/v/yeelight-platform.svg)](https://www.npmjs.com/package/yeelight-platform)\n[![CircleCI](https://circleci.com/gh/sahilchaddha/yeelight-platform.svg?style=svg)](https://circleci.com/gh/sahilchaddha/yeelight-platform)\n\n\n**Yet Another Yeelight API written in JS**\n\n## Description\n\nThis package supports discovering, connecting and controlling Yeelight Devices.\n`yeelight-platform` is a zero-dependency solution for controlling Xiaomi/Yeelight Lights. There are already a number of other solutions available, but they were not exactly what I wanted, so I made another one to be better than all the others.\n\n\u003cp align=\"center\"\u003e\n  \u003c!-- Why isn't there Markdown for centered images? --\u003e\n  \u003cimg src=\"https://imgs.xkcd.com/comics/standards.png\" alt=\"Competing standards\"\u003e\n\u003c/p\u003e\n\n## Installation\n\n```shell\n    $ npm install yeelight-platform\n```\n\n## Usage : \n\n### Discover\n\n```js\n    const YeeDiscovery = require('yeelight-platform').Discovery\n    const discoveryService = new YeeDiscovery()\n\n    discoveryService.on('started', () =\u003e {\n        console.log('** Discovery Started **')\n    })\n\n    discoveryService.on('didDiscoverDevice', (device) =\u003e {\n        console.log(device)\n    })\n\n    discoveryService.listen()\n    /*\n        {\n            Location: 'yeelight://192.168.x.x:55443',\n            id: '0x000000000xxxxx',\n            model: 'bslamp1',\n            support:\n            'get_prop set_default set_power toggle set_bright start_cf stop_cf set_scene cron_add cron_get cron_del set_ct_abx set_rgb set_hsv set_adjust adjust_bright adjust_ct adjust_color set_music set_name',\n            power: 'off',\n            bright: '1',\n            color_mode: '1',\n            ct: '2752',\n            rgb: '16750592',\n            hue: '36',\n            sat: '100'\n        }\n    */\n```\n\n### Device\n\n```js\n    const YeeDevice = require('yeelight-platform').Device\n\n    const device = new YeeDevice({host: \"192.168.0.190\", port: 55443})\n\n    device.connect()\n\n    device.on('deviceUpdate', (newProps) =\u003e {\n        console.log(newProps)\n    })\n    \n    device.on('connected', () =\u003e {\n        device.sendCommand({\n            id: -1,\n            method: 'set_power',\n            params: [\"on\", 'smooth', 300]\n        })\n    })    \n\n```\n\n## Compatible Devices\n\nhttps://www.yeelight.com/en_US/product/wifi-led-c\n\nhttps://www.yeelight.com/en_US/product/luna-mc\n\nhttps://www.yeelight.com/en_US/product/luna\n\nhttps://www.yeelight.com/en_US/product/mijia-lamp\n\nhttps://www.yeelight.com/en_US/product/lemon-color\n\nhttps://www.yeelight.com/en_US/product/lemon-ct\n\nhttps://www.yeelight.com/en_US/product/pitaya-plus\n\nhttps://www.yeelight.com/en_US/product/eos\n\nhttps://www.yeelight.com/en_US/product/cherry1s\n\nhttps://www.mi.com/us/yeelight-led-light-bulb/\n\nhttps://www.mi.com/us/mi-bedside-lamp/\n\n\n## Lint\n\n```shell\n    $ npm run lint\n```\n\n## API : \n\nYeelight Official API Documentation\n\nhttps://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf\n\n### Author\n\nSahil Chaddha\n\nmail@sahilchaddha.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsahilchaddha%2Fyeelight-platform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsahilchaddha%2Fyeelight-platform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsahilchaddha%2Fyeelight-platform/lists"}