{"id":25220417,"url":"https://github.com/adridevelopsthings/philipshue-cli","last_synced_at":"2025-04-05T11:21:16.776Z","repository":{"id":223768195,"uuid":"761506978","full_name":"AdriDevelopsThings/philipshue-cli","owner":"AdriDevelopsThings","description":"A cli interface for the philipshue api","archived":false,"fork":false,"pushed_at":"2024-05-06T22:08:00.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T21:53:11.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdriDevelopsThings.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2024-02-22T00:36:49.000Z","updated_at":"2024-05-06T22:07:52.000Z","dependencies_parsed_at":"2024-02-22T01:20:13.507Z","dependency_job_id":"1f91072e-c0f4-484a-afed-639f72b32fb7","html_url":"https://github.com/AdriDevelopsThings/philipshue-cli","commit_stats":null,"previous_names":["adridevelopsthings/philipshue-cli"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdriDevelopsThings%2Fphilipshue-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdriDevelopsThings%2Fphilipshue-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdriDevelopsThings%2Fphilipshue-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdriDevelopsThings%2Fphilipshue-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdriDevelopsThings","download_url":"https://codeload.github.com/AdriDevelopsThings/philipshue-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247326583,"owners_count":20920872,"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":"2025-02-10T21:53:15.645Z","updated_at":"2025-04-05T11:21:16.751Z","avatar_url":"https://github.com/AdriDevelopsThings.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# philipshue-cli\nA cli interface for the philipshue api\n\n## Installation\nDownload the binary from the releasese page for your operating system or install it with cargo: \n```\ncargo install --git https://github.com/adridevelopsthings/philipshue-cli\n```\n\n### AUR\nIf you're using arch linux you can get the philipshue-cli from the [AUR](https://aur.archlinux.org/packages/philipshue-cli):\n```\nyay -S philipshue-cli\n```\n\n### Docker\nIt's also possible to run philipshue-cli with docker:\n\n```\ndocker run --rm -v ./config:/config ghcr.io/adridevelopsthings/philipshue-cli philipshue-cli login --device-type testdevice\n```\n\n# Usage\n```\nUsage: philipshue-cli \u003cCOMMAND\u003e\n\nCommands:\n  login         Login to the hue bridge.\n  get-light     Get all data including it's state from a light.\n  list-lights   List all lights, their light number and name.\n  get-lights    List the data from all lights. If you just want to list all light numbers and names use 'list-lights' instead.\n  change-state  Change the state (like if the light is on or off) of a light.\n  stay-on       Turn the light on and (re-)set the state for n seconds every transition-time, if set, otherwise 10 seconds.\n  help          Print this message or the help of the given subcommand(s)\n\nOptions:\n  -h, --help     Print help\n  -V, --version  Print version\n```\n## Login\n```\nLogin to the hue bridge.\n\nUsage: philipshue-cli login [OPTIONS]\n\nOptions:\n  -b, --bridge-url \u003cBRIDGE_URL\u003e    Set the bridge url if discovering is not possible or doesn't work.\n  -d, --device-type \u003cDEVICE_TYPE\u003e  Set the device type to any string. The bridge will associate your credentials with this string. If you don't set the device-type cli#HOSTNAME will be used\n```\n\n## Get light\n```\nGet all data including it's state from a light.\n\nUsage: philipshue-cli get-light \u003cLIGHT\u003e\n\nArguments:\n  \u003cLIGHT\u003e  The light number or light name.\n```\n\n## List lights\n```\nList all lights, their light number and name.\n\nUsage: philipshue-cli list-lights\n```\n\n## Get lights\n```\nList the data from all lights. If you just want to list all light numbers and names use 'list-lights' instead.\n\nUsage: philipshue-cli get-lights\n```\n\n## Change light state\n```\nChange the state (like if the light is on or off) of a light.\n\nUsage: philipshue-cli change-state [OPTIONS] \u003cLIGHT\u003e\n\nArguments:\n  \u003cLIGHT\u003e  The light number or light name.\n\nOptions:\n  -b, --brightness \u003cBRIGHTNESS\u003e            \n      --saturation \u003cSATURATION\u003e            \n      --hue \u003cHUE\u003e                          \n  -t, --transition-time \u003cTRANSITION_TIME\u003e  Transition time in seconds.\n  -s, --state \u003cSTATE\u003e                      [possible values: on, off]\n```\n\n## Stay on\n```\nTurn the light on and (re-)set the state for n seconds every transition-time, if set, otherwise 10 seconds.\n\nUsage: philipshue-cli stay-on [OPTIONS] --stay-on-for \u003cSTAY_ON_FOR\u003e \u003cLIGHT\u003e\n\nArguments:\n  \u003cLIGHT\u003e  The light number or light name.\n\nOptions:\n  -b, --brightness \u003cBRIGHTNESS\u003e            \n      --saturation \u003cSATURATION\u003e            \n      --hue \u003cHUE\u003e                          \n  -t, --transition-time \u003cTRANSITION_TIME\u003e  Transition time in seconds.\n  -s, --stay-on-for \u003cSTAY_ON_FOR\u003e          Stay on for n seconds.\n```\n\n# License\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadridevelopsthings%2Fphilipshue-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadridevelopsthings%2Fphilipshue-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadridevelopsthings%2Fphilipshue-cli/lists"}