{"id":15202972,"url":"https://github.com/nstevens1040/set-phillipshue","last_synced_at":"2026-02-17T01:01:39.301Z","repository":{"id":70279085,"uuid":"499690129","full_name":"nstevens1040/Set-PhillipsHue","owner":"nstevens1040","description":"Work in progress Windows PowerShell cmdlet to set the hue, brightness, saturation, effect, and power state of Phillips Hue light bulbs.","archived":false,"fork":false,"pushed_at":"2022-06-08T20:17:26.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T07:18:28.647Z","etag":null,"topics":["dotnet-framework","hue","philips","philips-hue","philips-hue-api","philips-hue-bridge","philips-hue-bulbs","philips-hue-lighting","philips-hue-lights","powershell","powershell-cmdlets","powershell-script","windows-powershell"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/nstevens1040.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-04T00:55:02.000Z","updated_at":"2022-06-08T20:02:33.000Z","dependencies_parsed_at":"2023-02-27T03:46:35.347Z","dependency_job_id":null,"html_url":"https://github.com/nstevens1040/Set-PhillipsHue","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"3ab6afc1a48e0d3c4749f28465008310f928310a"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstevens1040%2FSet-PhillipsHue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstevens1040%2FSet-PhillipsHue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstevens1040%2FSet-PhillipsHue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstevens1040%2FSet-PhillipsHue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nstevens1040","download_url":"https://codeload.github.com/nstevens1040/Set-PhillipsHue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241982640,"owners_count":20052535,"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":["dotnet-framework","hue","philips","philips-hue","philips-hue-api","philips-hue-bridge","philips-hue-bulbs","philips-hue-lighting","philips-hue-lights","powershell","powershell-cmdlets","powershell-script","windows-powershell"],"created_at":"2024-09-28T04:20:50.486Z","updated_at":"2025-10-05T23:07:04.151Z","avatar_url":"https://github.com/nstevens1040.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Set-PhillipsHue\nWindows PowerShell cmdlet to set the hue, brightness, saturation, effect, and power state of Phillips Hue light bulbs.  \n  \nI was able to implement [this](https://stackoverflow.com/a/22649803) in C# in order to convert RGB values into XY values.  \n\nScript assumes you've set a **PHILIPS_HUE_URI** environment variable to:  \n  \n```\nhttp://\u003cHue Bridge Uri or IP Address\u003e/api/\u003cPhilips Hue API Key\u003e/lights\n```  \n  \n## Quick Start\nAfter you have set your **PHILIPS_HUE_URI** environment variable you can use **Windows PowerShell** (*not PowerShell Core*) to make this script available to you by running the following commands.  \n```ps1\nSet-ExecutionPolicy Bypass -Scope Process -Force;\n[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;\niex (irm https://raw.githubusercontent.com/nstevens1040/Set-PhillipsHue/main/Set-PhilipsHue.ps1)\n```  \n## Example\nLet's say you have a connected light named **Hue Blow**. It's already turned on, but you want to change the color to blue, set the saturation to 254, and set the brightness to 254. To accomplish that, you would run the following command.\n```ps1\nSet-PhilipsHue -LightName 'Hue Blow' -Color blue -Brightness 254 -Saturation 254\n```\n## Get-Help Set-PhillipsHue -Full\n```ps1\n\nNAME\n    Set-PhilipsHue\n    \nSYNTAX\n    Set-PhilipsHue [-LightName] \u003cstring\u003e [[-Color] {red | orange | yellow | chartreuse | electric green | spring green \n    | aqua | azure | blue | violet | fuchsia | bright pink}] [[-Brightness] \u003cint\u003e] [[-Effect] {none | colorloop}] \n    [[-PowerState] {On | Off}] [[-Saturation] \u003cint\u003e]  [\u003cCommonParameters\u003e]\n    \n    \nPARAMETERS\n    -Brightness \u003cint\u003e\n        \n        Required?                    false\n        Position?                    2\n        Accept pipeline input?       false\n        Parameter set name           (All)\n        Aliases                      None\n        Dynamic?                     false\n        \n    -Color \u003cstring\u003e\n        \n        Required?                    false\n        Position?                    1\n        Accept pipeline input?       false\n        Parameter set name           (All)\n        Aliases                      None\n        Dynamic?                     false\n        \n    -Effect \u003cstring\u003e\n        \n        Required?                    false\n        Position?                    3\n        Accept pipeline input?       false\n        Parameter set name           (All)\n        Aliases                      None\n        Dynamic?                     false\n        \n    -LightName \u003cstring\u003e\n        \n        Required?                    true\n        Position?                    0\n        Accept pipeline input?       false\n        Parameter set name           (All)\n        Aliases                      None\n        Dynamic?                     false\n        \n    -PowerState \u003cstring\u003e\n        \n        Required?                    false\n        Position?                    4\n        Accept pipeline input?       false\n        Parameter set name           (All)\n        Aliases                      None\n        Dynamic?                     false\n        \n    -Saturation \u003cint\u003e\n        \n        Required?                    false\n        Position?                    5\n        Accept pipeline input?       false\n        Parameter set name           (All)\n        Aliases                      None\n        Dynamic?                     false\n        \n    \u003cCommonParameters\u003e\n        This cmdlet supports the common parameters: Verbose, Debug,\n        ErrorAction, ErrorVariable, WarningAction, WarningVariable,\n        OutBuffer, PipelineVariable, and OutVariable. For more information, see \n        about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). \n    \n    \nINPUTS\n    None\n    \n    \nOUTPUTS\n    System.Object\n    \nALIASES\n    None\n    \n\nREMARKS\n    None\n```  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstevens1040%2Fset-phillipshue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnstevens1040%2Fset-phillipshue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstevens1040%2Fset-phillipshue/lists"}