{"id":17130023,"url":"https://github.com/zeha/huectl","last_synced_at":"2025-10-12T05:31:01.679Z","repository":{"id":66882359,"uuid":"48005743","full_name":"zeha/huectl","owner":"zeha","description":"philips hue ctl tool","archived":false,"fork":false,"pushed_at":"2015-12-26T01:24:52.000Z","size":9,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T01:09:25.620Z","etag":null,"topics":["cli","hue-lights","iot","light"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/zeha.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":"2015-12-14T22:47:31.000Z","updated_at":"2024-12-29T16:20:50.000Z","dependencies_parsed_at":"2023-02-23T14:16:07.544Z","dependency_job_id":null,"html_url":"https://github.com/zeha/huectl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeha%2Fhuectl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeha%2Fhuectl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeha%2Fhuectl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeha%2Fhuectl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeha","download_url":"https://codeload.github.com/zeha/huectl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236169074,"owners_count":19106100,"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":["cli","hue-lights","iot","light"],"created_at":"2024-10-14T19:11:15.101Z","updated_at":"2025-10-12T05:30:56.409Z","avatar_url":"https://github.com/zeha.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# huectl quickstart\n\n## install\n\n```\n$ brew install python3\n$ pip install -r requirements.txt\n```\n\n- or -  \n\n```\n$ apt-get install python3 python3-requests\n```\n\n## basic usage\n\nInitial setup and list lights:\n\n```\n$ huectl\nPress link button on bridge 192.168.0.100 now.......\n\n1     Bedroom 1               Extended color light      {'reachable': True, 'sat': 254, 'xy': [0.305, 0.3126], 'effect': 'none', 'on': False, 'bri': 254, 'alert': 'none', 'hue': 34840, 'colormode': 'xy', 'ct': 153}\n3     floor lamp              Extended color light      {'reachable': True, 'sat': 254, 'xy': [0.305, 0.3126], 'effect': 'none', 'on': False, 'bri': 254, 'alert': 'none', 'hue': 34840, 'colormode': 'xy', 'ct': 153}\n2     Bedroom 2               Extended color light      {'reachable': True, 'sat': 254, 'xy': [0.305, 0.3126], 'effect': 'none', 'on': False, 'bri': 254, 'alert': 'none', 'hue': 34840, 'colormode': 'xy', 'ct': 153}\n```\n\nTurn a light on:\n\n```\n$ huectl on 2\n[{'success': {'/lights/2/state/on': True}}]\n```\n\nBack off:\n\n```\n$ huectl off 2\n[{'success': {'/lights/2/state/on': False}}]\n```\n\nDim a light:\n\n```\n$ huectl dim 3 30\n[{'success': {'/lights/3/state/on': True}}, {'success': {'/lights/3/state/bri': 127}}]\n```\n\n\n## scenes\n\nList scenes:\n\n```\n$ huectl scenes\n9b91fe11f-on-0  Deep sea on 0                  1 2 3\nac637e2f0-on-0  Relax on 0                     1 2 3\nOFF-TAP-1       Tap scene 1                    1 2 3\nTAP-2           Tap scene 2                    1 2 3\nTAP-3           Tap scene 3                    1 2 3\nTAP-4           Tap scene 4                    1 2 3\n```\n\nActivate scene `TAP-2`:\n\n```\n$ huectl scene TAP-2\n[{'success': {'/groups/0/action/scene': 'TAP-2'}}]\n```\n\nGet details (lights, lightstates) for `TAP-2`:\n\n```\n$ huectl scene-detail TAP-2\nID:       TAP-2\nName:     Tap scene 2\nLights:   1 2 3\nFlags:    recycle v1\n```\n(Lightstates are not stored in the bridge for v1 scenes.)\n\n\n## sensors\n\nList sensors:\n\n```\n$ huectl sensors\n1     Daylight                       Daylight        {'lastupdated': 'none', 'daylight': None}\n2     Hue tap switch 1               ZGPSwitch       {'lastupdated': 'none', 'buttonevent': None}\n3     Hue dimmer switch 1            ZLLSwitch       {'lastupdated': 'none', 'buttonevent': None}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeha%2Fhuectl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeha%2Fhuectl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeha%2Fhuectl/lists"}