{"id":20884622,"url":"https://github.com/adam-mcdaniel/smartlamp","last_synced_at":"2025-10-12T15:37:10.435Z","repository":{"id":98909258,"uuid":"324643963","full_name":"adam-mcdaniel/smartlamp","owner":"adam-mcdaniel","description":"A library to control Govee IOT lights.","archived":false,"fork":false,"pushed_at":"2020-12-26T22:20:30.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-12T15:37:09.665Z","etag":null,"topics":["govee","iot","light","smartlamp"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adam-mcdaniel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-12-26T22:16:15.000Z","updated_at":"2020-12-31T12:36:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"16431646-8967-4231-8cbc-23d016a7cb28","html_url":"https://github.com/adam-mcdaniel/smartlamp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adam-mcdaniel/smartlamp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-mcdaniel%2Fsmartlamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-mcdaniel%2Fsmartlamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-mcdaniel%2Fsmartlamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-mcdaniel%2Fsmartlamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adam-mcdaniel","download_url":"https://codeload.github.com/adam-mcdaniel/smartlamp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-mcdaniel%2Fsmartlamp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011851,"owners_count":26085005,"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-12T02:00:06.719Z","response_time":53,"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":["govee","iot","light","smartlamp"],"created_at":"2024-11-18T08:10:42.916Z","updated_at":"2025-10-12T15:37:10.393Z","avatar_url":"https://github.com/adam-mcdaniel.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# smartlamp\n\nA library to control Govee IOT lights.\n\n_This library is built upon [Matt Chun-Lum's library](https://github.com/mattcl/govee-rs), which is a work in progress._\n\n## Usage\n\nList of supported light models:\n - `H6160`, `H6163`, `H6104`, `H6109`, `H6110`,\n - `H6117`, `H6159`, `H7021`, `H7022`, `H6086`,\n - `H6089`, `H6182`, `H6085`, `H7014`, `H5081`,\n - `H6188`, `H6135`, `H6137`, `H6141`, `H6142`,\n - `H6195`, `H7005`, `H6083`, `H6002`, `H6003`,\n - `H6148`, `H6052`, `H6143`, `H6144`, `H6050`,\n - `H6199`, `H6054`, `H5001`\n\n\n### Steps to follow\n\n1. Download the \"Govee Home\" app.\n2. Go to `My Profile` -\u003e `About Us` -\u003e `Apply for API Key`\n3. Wait for the email, and copy your API key to an environment variable named `GOVEE_API_KEY`.\n4. Clone this git repository, and write your code in `src/bin.rs`.\n5. Finally, execute `cargo run`\n\nAnd then you're done!\n\nIMPORTANT NOTE: `No devices found` refers to the list of _valid_ devices associated with your account. _If you have a light that doesn't have a supported model number, this program will not find your light._\n\n## Example Code\n\nThis code searches for all lights associated with your account, turns them on, sets their colors to red, sets their brightness to 50%, and their color temperature to balanced (perfectly between warm and cold).\n\n```rust\nuse smartlamp::{Light, Error};\n\nfn main() -\u003e Result\u003c(), Error\u003e {\n    let lights = Light::all_lights()?;\n\n    for light in lights {\n        light.turn_on()?;\n        // red\n        light.set_color(255, 0, 0)?;\n\n        // brightness of bulb\n        light.set_brightness(50);\n        // warmer or colder temperature\n        light.set_color_temperature(50);\n    }\n\n    Ok(())\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam-mcdaniel%2Fsmartlamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadam-mcdaniel%2Fsmartlamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam-mcdaniel%2Fsmartlamp/lists"}