From c83039affc344cfef8676f549bfd77db480fbab7 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Sat, 23 Jul 2022 20:50:37 -0700 Subject: [PATCH 01/36] Building LightScript with PipeScript and Consolidating Workflows (#20) --- .github/workflows/RunEZOut.yml | 17 ----------------- .github/workflows/TestAndPublish.yml | 18 ++++++++++++++++-- .github/workflows/UpdateDocs.yml | 14 -------------- 3 files changed, 16 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/RunEZOut.yml delete mode 100644 .github/workflows/UpdateDocs.yml diff --git a/.github/workflows/RunEZOut.yml b/.github/workflows/RunEZOut.yml deleted file mode 100644 index e4ba23a..0000000 --- a/.github/workflows/RunEZOut.yml +++ /dev/null @@ -1,17 +0,0 @@ - -name: Run EZOut -on: - push: -jobs: - RunEZOut: - runs-on: ubuntu-latest - if: ${{ success() }} - steps: - - name: Check out repository - uses: actions/checkout@v2 - - name: UseEZOut - uses: StartAutomating/EZOut@master - - name: Push Changes - shell: pwsh - run: git push; exit 0 - diff --git a/.github/workflows/TestAndPublish.yml b/.github/workflows/TestAndPublish.yml index b5fda7d..2e3bc58 100644 --- a/.github/workflows/TestAndPublish.yml +++ b/.github/workflows/TestAndPublish.yml @@ -448,9 +448,9 @@ jobs: if (-not $imported) { return } - $foundModule = try { Find-Module -Name $imported.Name -ErrorAction SilentlyContinue } catch {} + $foundModule = try { Find-Module -Name $imported.Name -ErrorAction SilentlyContinue} catch {} - if ($foundModule -and $foundModule.Version -ge $imported.Version) { + if ($foundModule -and (([Version]$foundModule.Version) -ge ([Version]$imported.Version))) { "::warning::Gallery Version of $moduleName is more recent ($($foundModule.Version) >= $($imported.Version))" | Out-Host } else { @@ -485,4 +485,18 @@ jobs: } } } @Parameters + BuildModule: + runs-on: ubuntu-latest + if: ${{ success() }} + steps: + - name: Check out repository + uses: actions/checkout@v2 + - name: BuildPipeScript + uses: StartAutomating/PipeScript@main + - name: UseEZOut + uses: StartAutomating/EZOut@master + - name: UsePiecemeal + uses: StartAutomating/Piecemeal@main + - name: UseHelpOut + uses: StartAutomating/HelpOut@master diff --git a/.github/workflows/UpdateDocs.yml b/.github/workflows/UpdateDocs.yml deleted file mode 100644 index b030e0c..0000000 --- a/.github/workflows/UpdateDocs.yml +++ /dev/null @@ -1,14 +0,0 @@ - -name: Run HelpOut -on: - push: -jobs: - HelpOut: - runs-on: ubuntu-latest - if: ${{ success() }} - steps: - - name: Check out repository - uses: actions/checkout@v2 - - name: UseHelpOut - uses: StartAutomating/HelpOut@master - From e944eb16b50c6685e1fdefeb77b56d1e0a278349 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Sat, 23 Jul 2022 21:09:19 -0700 Subject: [PATCH 02/36] Send-HueBridge: Adding Aliases and Renaming Parameters (re #20) --- Send-HueBridge.ps1 | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Send-HueBridge.ps1 b/Send-HueBridge.ps1 index 8a52896..e7dc603 100644 --- a/Send-HueBridge.ps1 +++ b/Send-HueBridge.ps1 @@ -11,7 +11,7 @@ function Send-HueBridge Get-HueBridge #> [OutputType([PSObject])] - [CmdletBinding(SupportsShouldProcess=$true,ConfirmImpact='Low')] + [CmdletBinding(SupportsShouldProcess,ConfirmImpact='Low')] param( # The IP address of the hue bridge. [Parameter(Mandatory,ValueFromPipelineByPropertyName)] @@ -26,14 +26,16 @@ function Send-HueBridge # The command being sent to the bridge. This is a partial URI. [Parameter(ValueFromPipelineByPropertyName)] + [Alias('Uri','Url')] [string] $Command, # The data being sent to the Hue Bridge. # If this data is not a string, it will be converted to JSON. [Parameter(ValueFromPipelineByPropertyName)] + [Alias('Data')] [PSObject] - $Data, + $Body, # The HTTP method. By default, Get. [Parameter(ValueFromPipelineByPropertyName)] @@ -67,17 +69,17 @@ function Send-HueBridge method = $Method } - if ($Data) { - if ($data -is [string]){ - $splat.body = $data + if ($Body) { + if ($Body -is [string]){ + $splat.body = $Body } else { - $splat.body = ConvertTo-Json -Compress -Depth 100 -InputObject $Data + $splat.body = ConvertTo-Json -Compress -Depth 100 -InputObject $Body } } #endregion Construct the Message Body if ($OutputInput -or $WhatIfPreference) { # If -OutputInput or -WhatIf was passed - if ($Data) { $splat.body = $Data } + if ($Body) { $splat.body = $Body } $splat.address = ([uri]$splat.uri).LocalPath # Make an address property with a relative URI $splat.Remove('uri') # and remove URI $splat From ba6d20d3859ee4a7e46a3ea4d58d88d150187f25 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Sat, 23 Jul 2022 21:11:25 -0700 Subject: [PATCH 03/36] Simplifying Module Source (re #20) --- LightScript.ps1.psm1 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 LightScript.ps1.psm1 diff --git a/LightScript.ps1.psm1 b/LightScript.ps1.psm1 new file mode 100644 index 0000000..caae43e --- /dev/null +++ b/LightScript.ps1.psm1 @@ -0,0 +1,20 @@ +[include("*-*.ps1")]$PSScriptRoot + +if ($home) { + $Script:KnownResources = + @( + Get-HueLight + Get-HueRoom + Get-NanoLeaf + ) + + foreach ($resource in $Script:KnownResources) { + if ($resource.pstypenames -contains 'Hue.Light') { + Set-Alias -Name ($resource.Name -replace '\s') -Value Set-HueLight + } + if ($resource.pstypenames -contains 'Hue.Group' -or + $resource.pstypenames -contains 'Hue.LightGroup') { + Set-Alias -Name ($resource.Name -replace '\s') -Value Set-HueLight + } + } +} From 31e810b92f4c659d1ed5dab45ba02ff1a555b183 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Sat, 23 Jul 2022 21:12:49 -0700 Subject: [PATCH 04/36] Get-HueLight: Support for -New (#21) --- Get-HueLight.ps1 | Bin 3218 -> 1812 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Get-HueLight.ps1 b/Get-HueLight.ps1 index 3e6f1240211330ba67c07eb00e6695b5d8eeb7f2..e50edc9f914c55b45faa9ccca09dd2d190f27761 100644 GIT binary patch literal 1812 zcmbtVZExBz5dO}uI29y<1av=OOf9AB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fLgsf5VId=AO zJqH@)Oy9$~4&qlkIySJM-BP0>B3cW-5&WKI@a3SZ=~eFwJj7ogL)GVx+8v6Por!%w zyKx!Ufn^lWOs-;mj66aGR(OAfd}Z<&nPC+_g6-r+8}mlixVq>v?0}b8%e_bVHW=IY z?6=x~HN*OC<2rxw{iI0CW3)m3?-@ahIig!3=3QB5Y*ZJ!OTpq}+&k1R3;S}JRp(a- zEzdCOw_Xl^yU=J}>iBh^Tqw>w$AvHt{{t8H&FJksP+jV%wa~GyCSC8;qUx!MfmIci PR_&Bw_1zgnziasos+GoU From 1ad07acb10acc90730fc7c09eca2ad21e7e34fdf Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Sat, 23 Jul 2022 21:13:54 -0700 Subject: [PATCH 05/36] Rename-HueLight: Fixing encoding and #19. --- Rename-HueLight.ps1 | Bin 3100 -> 1526 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Rename-HueLight.ps1 b/Rename-HueLight.ps1 index 2f9605ce04fd511baff8ec7c7428a7682f3126a3..e0a90f17d9ef09deb3d6a22a7ea911f40c71ef3d 100644 GIT binary patch literal 1526 zcmcIkU2obz5PauXtb(P0g5CarQne(ZtrP+Zw0%G*I(!@Z8vD*Yp9LuKfA4+RvB9Y7 zOL?))&d$#5jQv#bP%**b0Xa$0|61T3i(=J#>4E-z=-W%MJaCcaEVoal;NUrEJlFEB|+IJoE;$2=Di7(-=tW2P-{t@n9TZ-t?B zl$jKvcHs=^tDS6k%`1l(< zogZ_`A^1Wb4K!c_G*$2u_KZ-wX~A#?U6FxLa#(9cxZmh|t>}%%dDl#>B~{lBXCFEJ z*Q1qiyt1i~w!hDJR5#X3cORSP_3Lijo0-ho z5m#470}PiZkt9{zv;wcb^{ec|W&d&nEsidO4dO~vN;Jn~7gMM46_$Fd&9@2sYmuhL zrVE$ncizAyyCw`69bSMxLlp}Oi|;G&Z-^rB>4ocbjNAIl&fJ!Te_xbqEqi6}4~?g) AxBvhE literal 3100 zcmdT`T~8WO5S`~H{SPk-Mf4g zV_zDw+`S+3b!N`o{r&4wZe=LnWg^#-;LXXgbTPJNfUzo{u-}!>*zL&`PQ8>D@>BmE z&hqz0qF`Q=6PZFoA|pv5mj=5gmA8^Yi?`!)mO{Cj?7@!|o{ph&H20VOm`)pux*1m& zrxM6I#Kn>uUL$v51GGNTaK6cRnzE(a$fTV|cUH?=asK z@ArE479J93GK7frAa8j0@#b?tM9G9UGSF50nGt3(%jW>Q6YO(s2&_!+|BU~kVruy3 zkuNXgf=Kl=kFL-uje)UNi|?nb^Ibe4`ax$bj$Ch~Q<60xFPn=jhWVtT3vGgxOYG`@v5vsqjTBymY)ZyED&K9GJbCvi3+W8eV zfgj}Z>$RxS+v?*T!7jRvbw#U1UK}f?{&vYaaCW1H-%v$uHjnk*^EH&kvLicd85 Date: Sat, 23 Jul 2022 21:15:03 -0700 Subject: [PATCH 06/36] Add-HueRoom: Fixing encoding --- Add-HueRoom.ps1 | Bin 7762 -> 3873 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Add-HueRoom.ps1 b/Add-HueRoom.ps1 index 9283e7732930a78b1d2c8f8e5a13094b26490214..65f0d973063b56f9676077c5b384c86e8a623502 100644 GIT binary patch literal 3873 zcmd5;+iu%N5PkPo3}gb5Qc-UETo>`JjuGErIVn)X2v+1s+J@vR%cT<{@xOOwmRCzD z?DVC2(ULnmd*;m9vs@HeP8w?tI+=`u(;mf74l+nRTvndEyBQ&B0P& z4#vXLnqr-UGoXMHz@gRg5~qIcG3JrgYu=&1oFgU0q)IU1T$nkuPU$SA5h#o5dx=lJ zsC1oRH)#zY!b_DRTrCzlLI}_Ga^+x9J<3z=2-9HFyd;z#!N>iw{q?T{2$`DOa$RTk z1)l5dV*}z8T@7N(>)F-(Z;agi_+BR0%BplE!(F&t zA!J;gS%9N4V`Abw_)~6$Xa4S*mm$$Px=>lHoU!G8;B0}DYm;kk$o|ih_bMsy4{OqE zy~admcvxOrv!))D%wdJ#j`_-#9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$S#K80J|amJS-bnqQ5Z*JAJOZ>oF{iJrbsgB2FA?XTF}|ZCzQ;)Fz_IeHg;sK)1x`-T#y-ZC?3m1unR?<3 zI~eAAz-QS@)!D2~^-}D?$_k#MJ%)K>;iaCmkXy8O@G1}^db+9V*21TA)qTw~xY9YA z^1l4kUfEG^Qa{$E7O~A4UYo;I*^_7RW$MjGHirXj#bG5LYm5MVt_26o)Y~XAUe)XWgi&A zh#|{W%zRzEJDAIy7MSh%!Issej)_u+K@zV6h->{hA8SZF)%W4G?K_c_KBld%myVE+qcDK)Nq zmb^WjVeu!|Z5JxW&GaOpIwxS>)|FWfiGwyell8+l&g?7U5j>S3_iM=3vE{TSwx@zIcVRo!sjP%r>PxbkeD__c ztjy#=hXbPupz$155eqGhqV9BH6<7258%b8DUEW7MrZ)BP>SJC3zcb&Nf|oNP)s5$+ zJ$~*G-I4Bji+=NRtZlL8g&nyw?+IQ7$1^yJ=(LDm=n2UTQ^q0YQCt5D#apZi?o-2C zE?Vp%Zl39>t;Q+e0DQ!+>KS79ew9x^MvB#7U5wF=ip8B3OR6`9s z{}|)NTz{^$5HW41US^Nm<@ln zMZHZ3=M`7su}I%eSo)aTGPcZw~E%gs;;f15v<0>@ZS)tECi{8v zh$-a5(sg|{SxL_MbGJ0RmFo>=G>*lQ`HTKSQ^_-We_QtB^Q4T5-c6aXw1qgKk>-a^r zY#QHXmD_6k@D=aNlb9npHXI=z{!>1q`w zj_gBh^oqq9>^gj(wennbyQycZqS@#CkG!$!%0rP?#z+-6QO`N94flz!N98fFlCvw1 SuY4|esA9+a+J5%Q_P+t2=0nQ> From 659d3f07cde5f3abf058986484c55a51620211e4 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Sat, 23 Jul 2022 21:15:48 -0700 Subject: [PATCH 07/36] Set-NanoLeaf: Adding .example --- Set-NanoLeaf.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Set-NanoLeaf.ps1 b/Set-NanoLeaf.ps1 index 9602964..3b00a9a 100644 --- a/Set-NanoLeaf.ps1 +++ b/Set-NanoLeaf.ps1 @@ -34,6 +34,8 @@ delayTime = 1 transTime = 1 } + .Example + Set-NanoLeaf -Palette "#123456", "#654321", "#abcdef", "#fedcba" -PluginType Rhythm -PluginName 'Dancing Duo' .Link Get-NanoLeaf .Link From 2932e3539451e65bd51c8bb009839cb14beaa159 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Sat, 23 Jul 2022 21:16:25 -0700 Subject: [PATCH 08/36] Adding Add-HueLight Source (#18 #20) --- Add-HueLight.ps1.ps1 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Add-HueLight.ps1.ps1 diff --git a/Add-HueLight.ps1.ps1 b/Add-HueLight.ps1.ps1 new file mode 100644 index 0000000..063a3f0 --- /dev/null +++ b/Add-HueLight.ps1.ps1 @@ -0,0 +1,27 @@ +function Add-HueLight +{ + [Rest("lights", + Invoker="Send-HueBridge", + Method='POST', + ContentType='application/json', + BodyParameter={ +{ + param( + # One or more Device Identifiers (serial numbers ). + # Use this parameter when adding lights that have already been assigned to another bridge. + [Alias('SerialNumber')] + [string[]] + $DeviceID + ) +} + })] + [CmdletBinding(SupportsShouldProcess)] + param() + + begin { + $hueBridge = Get-HueBridge + $invokeParams = @{} + $invokeParams.IPAddress = $hueBridge.IPAddress + $invokeParams.HueUserName = $hueBridge.HueUserName + } +} From 30e1fd75541d0ed0cc38b190e64a3ca46f404a73 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:15 +0000 Subject: [PATCH 09/36] Adding Add-HueLight Source (#18 #20) --- Add-HueLight.ps1 | 122 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 Add-HueLight.ps1 diff --git a/Add-HueLight.ps1 b/Add-HueLight.ps1 new file mode 100644 index 0000000..af5fe44 --- /dev/null +++ b/Add-HueLight.ps1 @@ -0,0 +1,122 @@ +function Add-HueLight { + + [CmdletBinding(SupportsShouldProcess)] + + + + param( +# One or more Device Identifiers (serial numbers ). + # Use this parameter when adding lights that have already been assigned to another bridge. + [Alias('SerialNumber')] + [string[]] + $DeviceID + ) + begin { + $hueBridge = Get-HueBridge + $invokeParams = @{} + $invokeParams.IPAddress = $hueBridge.IPAddress + $invokeParams.HueUserName = $hueBridge.HueUserName + + function ConvertRestInput { + param([Collections.IDictionary]$RestInput = @{}, [switch]$ToQueryString) + foreach ($ri in @($RestInput.GetEnumerator())) { + + $restParameterValue = $ri.Value + $restParameterValue = + if ($restParameterValue -is [DateTime]) { + $restParameterValue.Tostring('o') + } + elseif ($restParameterValue -is [switch]) { + $restParameterValue -as [bool] + } + else { + if ($ToQueryString -and + $restParameterValue -is [Array] -and + $JoinQueryValue) { + $restParameterValue -join $JoinQueryValue + } else { + $restParameterValue + } + } + + $RestInput[$ri.Key] = $restParameterValue + } + $RestInput + + } + +} +process { + $InvokeCommand = 'Send-HueBridge' + $invokerCommandinfo = + $ExecutionContext.SessionState.InvokeCommand.GetCommand('Send-HueBridge', 'All') + $method = 'POST' + $contentType = 'application/json' + $bodyParameterNames = @('DeviceID') + $queryParameterNames = @('') + $joinQueryValue = '' + $uriParameterNames = @('') + $endpoints = @("lights") + $ForEachOutput = { + + } + if ($ForEachOutput -match '^\s{0,}$') { + $ForEachOutput = $null + } + if (-not $invokerCommandinfo) { + Write-Error "Unable to find invoker '$InvokeCommand'" + return + } + if (-not $psParameterSet) { $psParameterSet = $psCmdlet.ParameterSetName} + if ($psParameterSet -eq '__AllParameterSets') { $psParameterSet = $endpoints[0]} + $uri = $endpoints[0] + + $invokeSplat = @{} + $invokeSplat.Uri = $uri + if ($method) { + $invokeSplat.Method = $method + } + if ($ContentType -and $invokerCommandInfo.Parameters.ContentType) { + $invokeSplat.ContentType = $ContentType + } + if ($InvokeParams -and $InvokeParams -is [Collections.IDictionary]) { + $invokeSplat += $InvokeParams + } + $completeBody = [Ordered]@{} + foreach ($bodyParameterName in $bodyParameterNames) { + if ($bodyParameterName) { + if ($PSBoundParameters.ContainsKey($bodyParameterName)) { + $completeBody[$bodyParameterName] = $PSBoundParameters[$bodyParameterName] + } else { + $bodyDefault = $ExecutionContext.SessionState.PSVariable.Get($bodyParameterName).Value + if ($null -ne $bodyDefault) { + $completeBody[$bodyParameterName] = $bodyDefault + } + } + } + } + $completeBody = ConvertRestInput $completeBody + $bodyContent = + if ($ContentType -match 'x-www-form-urlencoded') { + @(foreach ($bodyPart in $completeBody.GetEnumerator()) { + "$($bodyPart.Key.ToString().ToLower())=$([Web.HttpUtility]::UrlEncode($bodyPart.Value))" + }) -join '&' + } elseif ($ContentType -match 'json' -or -not $ContentType) { + ConvertTo-Json $completeBody + } + if ($bodyContent -and $method -ne 'get') { + $invokeSplat.Body = $bodyContent + } + Write-Verbose "$($invokeSplat.Uri)" + if ($ForEachOutput) { + if ($ForEachOutput.Ast.ProcessBlock) { + & $invokerCommandinfo @invokeSplat | & $ForEachOutput + } else { + & $invokerCommandinfo @invokeSplat | ForEach-Object -Process $ForEachOutput + } + } else { + & $invokerCommandinfo @invokeSplat + } +} +} + From 8332af4bff0de63f2421b062b117e99efb91fbb5 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:15 +0000 Subject: [PATCH 10/36] Adding Add-HueLight Source (#18 #20) --- LightScript.psm1 | Bin 5318 -> 860 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/LightScript.psm1 b/LightScript.psm1 index 6861285fea4b467c584eb9bebffd17d68f9ab416..4f5dee20c4f139cce347686a65be2b3b9915b07d 100644 GIT binary patch literal 860 zcmcIi(MrQG6n*bkTxOx|Bn4juK@m5_F~$nMScTBt+F+WLBt>QP-_32e3T~(`_9?x& z=iGD7O{op?qJlUqg+vev;yF5YT?x6lb65jgaaX}4TxD5dMB~<4y9uzFkPZz@rfixv z_RLq-ShU7slE5|q|A}%(n%=xSR90vOOd&+nA0^ZRu!TY^Csd2j0h~bgDjGt%3IRu$ zu%NU90)C@j@*08F+<6O8o<2V3>CG-0$0!~gOWSk02R}IL<)T%>8zEK zh6G&@^o}ZBQn_OnKHK`BzT`?T zkeA~{67rtKYYwdKY_$Ps)8XsJuf9jCR3=vJiQdX)lvf948Yz^B%6G z;J&>NKMqH(VHpM+$qT>d++o1WcO|OQOCs{N`sM_;*ts Gy_ZiZO#IRS literal 5318 zcmdT|T~8B16ur+T{)dg-$VY4weKcxB1Vo7vn&^WyrqV*Ig*I(Li1OFfb7p!wJG--6 zI_1TX?y|Fc&)j?N$K08}e@7l+4WL6Cb9K$PH|9zy{+>x~{#-M5oMOhI(RzDkSt75DZXG!VMgl8_Ksy8GIV_nN zc{}qV>P+CzO7;gAo`x++c+I>h6QVGTXhntQg|s@iNe#z`E% z0Vifa42s2M|4fiY@cY(2^I;A5`N zM>$?G3zZRHCWaYS>$_saVilPvTWwmX+%_N8o-%~;Dj$xmBF>`Ns^Xz4wz&56U`5BQ zd$CMzLEfz}dCVfC<$U;2x(ZT=*($thhVzok$EsaFnaAu)Vk%jlWv<5-Zxx2)P{?lE z^Lac@zP4tWTE?3x z&6dR~dME~|iHOOrq0FhGK8t*#GUcA3cWhT&Rk^3oW}NG$xZ7xhIiDfx?HBW|zmMID z-L>?8kuf;E#PULSMRJj?9sQ-neVC@V zP#!6&!T;egcM73;>q&$@r`XwYkL}`Mf+*ykeIHk5A}dYx*-HNW#9^^o>v;?P`Wn&A zNIk}k^zpUv_93EkiYm%e6|Ihm{0>Hd*00bRPhJn6;T)TcxL z@MqsPF-HG!{bS5r;_DxH^1Ic>>&rL0|x Zb6NR#Xzb6*R?QZ!js9p&TnBI?{{WL=IqCoa From b9771901244c14878adb9c6f2a9448a534b4e5b0 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:25 +0000 Subject: [PATCH 11/36] Updating Add-HueLight.md --- docs/Add-HueLight.md | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 docs/Add-HueLight.md diff --git a/docs/Add-HueLight.md b/docs/Add-HueLight.md new file mode 100644 index 0000000..70717af --- /dev/null +++ b/docs/Add-HueLight.md @@ -0,0 +1,54 @@ + +Add-HueLight +------------ +### Synopsis + +Add-HueLight [[-DeviceID] ] [-WhatIf] [-Confirm] [] + + +--- +### Description +--- +### Parameters +#### **Confirm** +-Confirm is an automatic variable that is created when a command has ```[CmdletBinding(SupportsShouldProcess)]```. +-Confirm is used to -Confirm each operation. + +If you pass ```-Confirm:$false``` you will not be prompted. + + +If the command sets a ```[ConfirmImpact("Medium")]``` which is lower than ```$confirmImpactPreference```, you will not be prompted unless -Confirm is passed. + +#### **DeviceID** + +|Type |Requried|Postion|PipelineInput| +|----------------|--------|-------|-------------| +|```[string[]]```|false |0 |false | +--- +#### **WhatIf** +-WhatIf is an automatic variable that is created when a command has ```[CmdletBinding(SupportsShouldProcess)]```. +-WhatIf is used to see what would happen, or return operations without executing them +--- +### Inputs +None + + +--- +### Outputs +System.Object + + +--- +### Syntax +```PowerShell +syntaxItem +``` +```PowerShell +---------- +``` +```PowerShell +{@{name=Add-HueLight; CommonParameters=True; parameter=System.Object[]}} +``` +--- + + From f89dccf24c54c4500dc3cfd16520c457408be143 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:26 +0000 Subject: [PATCH 12/36] Updating Add-HueRoom.md --- docs/Add-HueRoom.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/Add-HueRoom.md b/docs/Add-HueRoom.md index bfe6ecc..a75b5ba 100644 --- a/docs/Add-HueRoom.md +++ b/docs/Add-HueRoom.md @@ -68,6 +68,27 @@ The type of the room +Valid Values: + +* Bathroom +* Bedroom +* Carport +* Driveway +* Dining +* Front door +* Garage +* Garden +* Gym +* Hallway +* Kids bedroom +* Kitchen +* Living room +* Office +* Other +* Nursery +* Recreation +* Terrace +* Toilet |Type |Requried|Postion|PipelineInput | |--------------|--------|-------|---------------------| |```[String]```|false |named |true (ByPropertyName)| @@ -79,6 +100,12 @@ Rooms cannot share lights with other rooms, while light groups can contain light +Valid Values: + +* Room +* LightGroup +* Entertainment +* Zone |Type |Requried|Postion|PipelineInput | |--------------|--------|-------|---------------------| |```[String]```|false |named |true (ByPropertyName)| From 5fc89791aee6fc5dbfe4c7e08259a1f34b84e2e6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:26 +0000 Subject: [PATCH 13/36] Updating Add-HueSensor.md --- docs/Add-HueSensor.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/Add-HueSensor.md b/docs/Add-HueSensor.md index 6dd4f8a..7c4a2cf 100644 --- a/docs/Add-HueSensor.md +++ b/docs/Add-HueSensor.md @@ -49,6 +49,16 @@ Sensors can be: +Valid Values: + +* Switch +* OpenClose +* Presence +* Temperature +* Humidity +* LightLevel +* GenericFlag +* GenericStatus |Type |Requried|Postion|PipelineInput | |--------------|--------|-------|---------------------| |```[String]```|true |2 |true (ByPropertyName)| From f32ec2b1a601b09539143f058e4de5d665784dd9 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:28 +0000 Subject: [PATCH 14/36] Updating Get-HueLight.md --- docs/Get-HueLight.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/Get-HueLight.md b/docs/Get-HueLight.md index 89a007c..eda58dc 100644 --- a/docs/Get-HueLight.md +++ b/docs/Get-HueLight.md @@ -71,6 +71,16 @@ The light ID. |-------------|--------|-------|---------------------| |```[Int32]```|true |named |true (ByPropertyName)| --- +#### **New** + +If set, will get recently added lights. + + + +|Type |Requried|Postion|PipelineInput | +|--------------|--------|-------|---------------------| +|```[Switch]```|true |named |true (ByPropertyName)| +--- ### Outputs System.Management.Automation.PSObject @@ -89,6 +99,9 @@ Get-HueLight [-RegularExpression] [-ExactMatch] -Room [ [] ``` +```PowerShell +Get-HueLight [-RegularExpression] [-ExactMatch] -New [] +``` --- From e5e492c4f7380681d4067d6dac4e3338f0297783 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:29 +0000 Subject: [PATCH 15/36] Updating Get-NanoLeaf.md --- docs/Get-NanoLeaf.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/Get-NanoLeaf.md b/docs/Get-NanoLeaf.md index 5882e23..d330dca 100644 --- a/docs/Get-NanoLeaf.md +++ b/docs/Get-NanoLeaf.md @@ -91,6 +91,10 @@ Valid for plugins and effects. +Valid Values: + +* Rhythm +* Color |Type |Requried|Postion|PipelineInput| |--------------|--------|-------|-------------| |```[String]```|false |named |false | From 937f9a65082211e090cf704fae9ff87a4ee88a7b Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:30 +0000 Subject: [PATCH 16/36] Updating Send-HueBridge.md --- docs/Send-HueBridge.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Send-HueBridge.md b/docs/Send-HueBridge.md index a18626a..92f3ade 100644 --- a/docs/Send-HueBridge.md +++ b/docs/Send-HueBridge.md @@ -51,7 +51,7 @@ The command being sent to the bridge. This is a partial URI. |--------------|--------|-------|---------------------| |```[String]```|false |3 |true (ByPropertyName)| --- -#### **Data** +#### **Body** The data being sent to the Hue Bridge. If this data is not a string, it will be converted to JSON. @@ -114,7 +114,7 @@ System.Management.Automation.PSObject --- ### Syntax ```PowerShell -Send-HueBridge [-IPAddress] [-HueUserName] [[-Command] ] [[-Data] ] [[-Method] ] [-OutputInput] [[-PSTypeName] ] [-WhatIf] [-Confirm] [] +Send-HueBridge [-IPAddress] [-HueUserName] [[-Command] ] [[-Body] ] [[-Method] ] [-OutputInput] [[-PSTypeName] ] [-WhatIf] [-Confirm] [] ``` --- From c33c620214c1a7a675838aca64c5debe027a4d5b Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:30 +0000 Subject: [PATCH 17/36] Updating Set-HueLight.md --- docs/Set-HueLight.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/Set-HueLight.md b/docs/Set-HueLight.md index 7cd531c..f85ae0e 100644 --- a/docs/Set-HueLight.md +++ b/docs/Set-HueLight.md @@ -174,6 +174,10 @@ The effect +Valid Values: + +* colorloop +* none |Type |Requried|Postion|PipelineInput | |--------------|--------|-------|---------------------| |```[String]```|false |named |true (ByPropertyName)| @@ -184,6 +188,11 @@ The alert +Valid Values: + +* select +* lselect +* none |Type |Requried|Postion|PipelineInput | |--------------|--------|-------|---------------------| |```[String]```|false |named |true (ByPropertyName)| From 82cd44853a4dc046783931fb72f65246422577ac Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:31 +0000 Subject: [PATCH 18/36] Updating Set-NanoLeaf.md --- docs/Set-NanoLeaf.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/Set-NanoLeaf.md b/docs/Set-NanoLeaf.md index 419b42b..6540362 100644 --- a/docs/Set-NanoLeaf.md +++ b/docs/Set-NanoLeaf.md @@ -74,6 +74,11 @@ Set-NanoLeaf -Palette "#ff0000", "#00ff00", "#0000ff", "#000000" -PluginName Fir } ``` +#### EXAMPLE 11 +```PowerShell +Set-NanoLeaf -Palette "#123456", "#654321", "#abcdef", "#fedcba" -PluginType Rhythm -PluginName 'Dancing Duo' +``` + --- ### Parameters #### **Off** @@ -215,6 +220,16 @@ The type of effect. +Valid Values: + +* Plugin +* Random +* Flow +* Wheel +* Fade +* Highlight +* Custom +* Static |Type |Requried|Postion|PipelineInput | |--------------|--------|-------|---------------------| |```[String]```|false |11 |true (ByPropertyName)| @@ -235,6 +250,10 @@ The plugin type. +Valid Values: + +* Rhythm +* Color |Type |Requried|Postion|PipelineInput | |--------------|--------|-------|---------------------| |```[String]```|false |13 |true (ByPropertyName)| From 85c4a5a470adc88c882429f01c9baabfd684ae88 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:31 +0000 Subject: [PATCH 19/36] Updating Set-Pixoo.md --- docs/Set-Pixoo.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/Set-Pixoo.md b/docs/Set-Pixoo.md index c4b9de6..5f78b2a 100644 --- a/docs/Set-Pixoo.md +++ b/docs/Set-Pixoo.md @@ -119,6 +119,12 @@ If provided, will switch the Pixoo channel. +Valid Values: + +* Clock +* Cloud +* Visualizer +* Custom |Type |Requried|Postion|PipelineInput | |--------------|--------|-------|---------------------| |```[String]```|false |8 |true (ByPropertyName)| @@ -129,6 +135,11 @@ If provided, will switch the Pixoo into Stopwatch mode, and Stop, Reset, or Star +Valid Values: + +* Stop +* Start +* Reset |Type |Requried|Postion|PipelineInput | |--------------|--------|-------|---------------------| |```[String]```|false |9 |true (ByPropertyName)| From 21c96b46f3c9af7d8e3ae28c9e0a59941dac863d Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:31 +0000 Subject: [PATCH 20/36] Updating Set-Twinkly.md --- docs/Set-Twinkly.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/Set-Twinkly.md b/docs/Set-Twinkly.md index 5b25f42..ab96b51 100644 --- a/docs/Set-Twinkly.md +++ b/docs/Set-Twinkly.md @@ -125,6 +125,15 @@ For instance, if you use -RGBColor, you will not see the changes if the mode is +Valid Values: + +* off +* color +* demo +* effect +* movie +* playlist +* rt |Type |Requried|Postion|PipelineInput | |--------------|--------|-------|---------------------| |```[String]```|false |9 |true (ByPropertyName)| From 736060c1e2d87e84443d3a1b04ff20a6796a6f21 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:32 +0000 Subject: [PATCH 21/36] Updating README.md --- docs/README.md | 262 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 262 insertions(+) create mode 100644 docs/README.md diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..41542a8 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,262 @@ +
+ +

Smarter Lighting with PowerShell

+
+LightScript is a PowerShell module to control smart lights. + +It currently can control: + +* [Philips Hue Bridges](https://www.philips-hue.com/) +* [NanoLeaf](https://nanoleaf.me/) +* [Twinkly](https://www.twinkly.com/) +* [Divoom Pixoo64](https://www.divoom.com/products/pixoo-64) + + +The goal of LightScript is to let you control every light in your house, and do more than what most applications will let you. + +If you have any additional lights you'd like to support, file an issue, or consider contributing. + +## Installing LightScript + +LightScript is on the PowerShell Gallery. To install it, simply run: + +~~~PowerShell +# Install LightScript +Install-Module LightScript -Scope CurrentUser + +# Import LightScript +Import-Module LightScript -Force -PassThru +~~~ + +## Philips Hue Bridges + + +Hue Bridges let you control every Philips Hue (or compatible ZigBee) light in your house. + +To get started with LightScript and your Hue Bridge **press the link button and run this command in the next 30 seconds**: + +~~~PowerShell +Find-HueBridge | Connect-HueBridge +~~~ + +LightScript will remember this Hue Bridge, so you only have to run this once per machine. + +After you're set up, run + +~~~PowerShell +Get-HueLight +~~~ + +Now try setting the lights: + +~~~PowerShell +# Make the color temperature a warm afternoon (This should work on all bulbs). +Set-HueLight -ColorTemperature 425 + +# Make a bedroom pink (This should work on all color bulbs) +Set-HueLight -RoomName Bedroom -Hue 340 -Saturation .8 -Brightness 1 + +# Make the kitchen a light blue +Set-HueLight -RoomName Kitchen -RGBColor "#1245ab" + +# Turn off the light Nightstand1 +Set-HueLight -Name Nightstand1 -Off + +# Make all of the lights blink once +Set-HueLight -Effect select + +# Make all of the lights loop color +Set-HueLight -Effect colorloop + +# Make all of the lights stop looping color +Set-HueLight -Effect none +~~~ + + +Bridges also coordinate schedules, read and write sensors, and process rules. +~~~ +# Get all of the sensors +Get-HueSensor + +# Read the daylight sensor +Read-HueSensor -Name Daylight + +# Add a schedule to blink all lights in 10 minutes +# (this is great for the oven) +Add-HueSchedule -In '00:10:00' -Command (Set-HueLight -Alert lselect -OutputInput) -Name Blink10 +~~~ + + +### Hue Devices and Smart Aliases + +Set-HueLight supports smart aliasing. +This means that you can run Set-HueLight by any name of a light (or room). +This syntax will be available after you re-import. Once you've connected, you should be able to: + +~~~PowerShell +# Set a light by name +LightStrip1 -RGBColor "#1245ab" + +# Set a whole room by name +Bedroom -On -ColorTemperature 425 +~~~ + + +## NanoLeaf + +NanoLeaf is a flexible multipanel light with a built-in microphone for music effects. + +On Windows, you can Find-NanoLeaf to discover devices. + +NanoLeaf devices tend to be a little slower to respond to SSDP requests, and so you may have to increase your timeout, depending on your network quality. + +To pair, **press the link button and run this command in the next minute** + +~~~PowerShell +Find-NanoLeaf | Connect-NanoLeaf +~~~ + +Once you have the nanoleaf connected, you can: + +~~~PowerShell +# Get information about each NanoLeaf +Get-NanoLeaf + +# Get a list of panels from each NanoLeaf +Get-NanoLeaf -Panel + +# List plugins on the device +Get-NanoLeaf -ListPlugin + +# List effects on the device +Get-NanoLeaf -ListEffect + +# Set all NanoLeaf devices to a color temperature +Set-NanoLeaf -ColorTemperature 6500 + +# Make all NanoLeaf devices dim +Set-NanoLeaf -Brightness .1 + +# Make them bright again +Set-NanoLeaf -Brightness 1 + +# Directly use a plugin +Set-NanoLeaf -Palette "#ff0000","#00ff00", "#0000bb" -PluginName Wheel + +# Directly use a plugin with an option +Set-NanoLeaf -Palette "#ff0000","#00ff00", "#0000bb" -PluginName Wheel -EffectOption @{linDirection='up'} + +# Set a series of panels +Set-NanoLeaf -Panel @{ + 1234 = "#ff0000" # set a series of panels +} + +# Enable fast external control +Set-NanoLeaf -ExternalControl + +# Set a series of panels, via UDP +Set-NanoLeaf -Panel @{ + 1234 = "#ff0000" # set a series of panels +} -AsByteStream + +# Set all panels to an RGB Color +Set-NanoLeaf -RGBColor "#00ff00", + +# Set all panels to fade between two RGB Colors +Set-NanoLeaf -RGBColor "#012356", "#1245ab" + +# Set all nanoleafs to an effect name. +# Effect names are currently case-sensitive. +Set-NanoLeaf -EffectName 'Blaze' + +# You can also Watch for nanoleaf touch events: +Watch-NanoLeaf + +# This will allow you use Register-EngineEvent to handle events, like whenever a panel is touched. +Register-EngineEvent -SourceIdentifier NanoLeaf.Touch.Down -Action { + $event.MessageData | Out-Host +} + +~~~PowerShell + +## Twinkly + +Twinkly makes smart lights with per-LED control. + +The Twinkly app will show you the IP Address for a Twinkly device. Once you know this, run: + +~~~PowerShell +Connect-Twinkly -IPAddress $TheTwinklyIPAddress +~~~ + + +Once authenticated, you can: + +~~~PowerShell +# Get information about your lights +Get-Twinkly + +# Set your Twinkly into demo mode: +Set-Twinkly -Mode Demo + +# Make your lights Red: +Set-Twinkly -Mode Color +Set-Twinkly -RGBColor "#ff0000" + +# Make your lights pink: +Set-Twinkly -Hue 340 -Saturation .8 -Brightness 1 + +# Make your lights a color temperature (LightScript approximates the api) + +# Make a pattern that alternates your lights from red to green +Set-Twinkly -RGBColor "#ff0000", "#00ff00" -MovieFrameCount 2 +Set-Twinkly -Mode Movie +~~~ + +### A Note On Twinkly Local Authentication (or lack thereof) + +Unlikely NanoLeaf or Hue, Twinkly does not require you to press anything on the device to pair it. + +Unfortunately, it only allows one connection at a time, and the tokens it provides expire after a few hours. + +As such, you are quite likely to encounter the error "The Code is Invalid" when working with Twinkly in LightScript. + +This will happen after the app is used, or after a few hours. Don't panic. Just run: + +~~~PowerShell +# This will reconnect a Twinkly device. +Get-Twinkly | Connect-Twinkly +~~~ + + +## Pixoo64 + +The Pixoo App will let you know the device's IP address. From there, you can: + +~~~PowerShell +Connect-Pixoo -IPAddress 1.2.3.4 +~~~ + +To list connected devices, use: + +~~~PowerShell +Get-Pixoo +~~~ + +Here are a few things you can do with your Pixoo: + +~~~PowerShell +Set-Pixoo -Channel Cloud # Switch to the cloud Channel + +Set-Pixoo -Channel Visualizer # Switch to the visualizer + +Set-Pixoo -Visualizer 20 # Switch to a hidden visualizer + +Set-Pixoo -Stopwatch Start # Start a Stopwatch + +Set-Pixoo -Stopwatch Reset # Reset a Stopwatch + +Set-Pixoo -Timer "00:01:00" # Set a timer for one minute + +Set-Pixoo -RedScore 1 -BlueScore 0 # Keep a scoreboard +~~~ From ac377fbcb83327c93162b32b45fe55b4897a19bd Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:32 +0000 Subject: [PATCH 22/36] Updating README.md --- docs/README.md | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index 41542a8..484a77b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -63,7 +63,7 @@ Set-HueLight -RoomName Kitchen -RGBColor "#1245ab" Set-HueLight -Name Nightstand1 -Off # Make all of the lights blink once -Set-HueLight -Effect select +Set-HueLight -Alert select # Make all of the lights loop color Set-HueLight -Effect colorloop @@ -74,7 +74,7 @@ Set-HueLight -Effect none Bridges also coordinate schedules, read and write sensors, and process rules. -~~~ +~~~PowerShell # Get all of the sensors Get-HueSensor @@ -177,7 +177,7 @@ Register-EngineEvent -SourceIdentifier NanoLeaf.Touch.Down -Action { $event.MessageData | Out-Host } -~~~PowerShell +~~~ ## Twinkly @@ -260,3 +260,31 @@ Set-Pixoo -Timer "00:01:00" # Set a timer for one minute Set-Pixoo -RedScore 1 -BlueScore 0 # Keep a scoreboard ~~~ + +## Elgato Key Lighting + +Elgato makes Key Lighting for video recording and streaming. + +The Elgato Control Center will show you the IP Address of your Key Lights from the Accessories' settings. + +Once you know this, run: + +~~~PowerShell +Connect-KeyLight -IPAddress $TheKeyLightIPAddress +~~~ + +Once authenticated, you can: + +~~~PowerShell +# Get information about your lights +Get-KeyLight + +# Turn on your Key Light: +Set-KeyLight -On + +# Change the brightness and ColorTemperature: +Set-KeyLight -ColorTemperature 270 -Brightness 0.25 + +# Turn on and change the brightness at the same time: +Set-KeyLight -On -Brightness 0.25 +~~~ From 0e15b5d2fbee123728b31e73140762b8577320f3 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:32 +0000 Subject: [PATCH 23/36] Updating CHANGELOG.md --- docs/CHANGELOG.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docs/CHANGELOG.md diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md new file mode 100644 index 0000000..cf251e9 --- /dev/null +++ b/docs/CHANGELOG.md @@ -0,0 +1,29 @@ +## 0.2.3 +* Set-NanoLeaf: Fixing #17 +* Send-HueBridge: Adding logging +* Automatically documentating module (#13) +* Set-HueLight: + * Fixing Transition Time (#12) + * Adding examples + * Fixing -Hue/-HueIncrement (#15) +--- + +## 0.2.2 +Adding KeyLight: Connect-KeyLight, Get-KeyLight, Set-KeyLight, Disconnect-KeyLight +--- + +## 0.2.1 + +* Set-NanoLeaf: Adding -EffectOption parameter help (#9). Adding examples. +* Set-NanoLeaf: Fixing Brightness (#7). Adding Tab Completion (#8). Adding Examples +--- + +## 0.2: +Adding: Disconnect-HueBridge, Disconnect-NanoLeaf, Disconnect-Twinkly (#2) +Adding Pixoo commands: Connect/Disconnect/Get/Set-Pixoo (#4) + +--- +## 0.1: +Initial Release of LightScript: Smarter Lighting with PowerShell + +Script your Hue Bridge, NanoLeaf, or Twinkly lights. From d59a6859ffc3cb41d364f385750a8a270d68aaad Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:17:32 +0000 Subject: [PATCH 24/36] Updating LightScript.png --- docs/Assets/LightScript.png | Bin 0 -> 20424 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 docs/Assets/LightScript.png diff --git a/docs/Assets/LightScript.png b/docs/Assets/LightScript.png new file mode 100644 index 0000000000000000000000000000000000000000..eef09f319fd1bd8211ef26c55732b2ae91123825 GIT binary patch literal 20424 zcmeFZg;QHy)IHp%4yCx1;=$dmXiIQ+ha$nC-PvNAxm7cXAw{P*+zE$W+2i=V5g zU$0%i$!feueSF`WhrM_~`9c=>Rl_UeXwCB{-qrlOGj7@r2UxJ-$V>Ut4kUmqi4Gl| zfl?;kw5nL+E0FD%T5_dK%4UJ*{&YUFmKP+?H*CHx_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Vn{pAPa}H%E4=!PU-HDW;NN@|DT0=!vB= zOetee$1ZN07C1f{g!50N#6+fU>>JL_7uU;PoDi!i$qbq=Mj<^AGlQCp^r``LArb+S zKIiBWoFO0MC`+dZ1)n+VxH+3uFcmKm)rS;LK}%IfW8Ik`ymkCz1mpit4Gvij;>>>6nA&gF&UUbRWsAdH2Itim0h#E zK&w&Pq1T3^baK?yL?LI_>I^EWSCl@ZsRvu>H!(VP04}>*nInNOKCD%T*{TwY!>?_AGznANBtnvihiA9(r4& zvIg_Xz<=$*^_dN1g%Y`abvZ*pa0q~qbnsg!~uBT3kM*#z(B$L`UV zKWiJ~>Y3Y9SV)=gZQPxarHEO^@Q<<770m)RkZ7HDV}h9g2vc=(Z=|C8NnxwTzVxH3 zMU$j@rtFk*{59w;56cMu57qX;j}+Y98OI7cJs_=7U>+|Uir3|>S^@}o5VXdvi!Hh@Y@_OWttvv#m|^-f&E&ZW*`=pqBPb!8VK=OBL8j zj~oat2O@~63_P@Ru=ZOu=qY=RRlg*gRQ+OH(T4bCI4P^|AV417u%j3_SqZJSRB|Iu zdWjc24!9SOin)>=BMCt0_|*o0wLVXL>m0QgMahGYS4oM4=&h+- zO4B1Zicjp%O7_u0O|27vzr80olH5G#qT5-WzU0%`&`O5fG=Eyj;*#LSihDts1zFdf z2>`g-*C^IW!Re%`%F_ZgvpCO-@5h@}wXlRaZNJHKQ}xe#6Al1qzx`4I=qV}ASg1X!~FJ`FuSN_ew|2G4#A-k%W WmSyFX Date: Sat, 23 Jul 2022 21:21:14 -0700 Subject: [PATCH 25/36] Updating Module Version [0.2.4] and CHANGELOG --- CHANGELOG.md | 6 ++++++ LightScript.psd1 | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf251e9..9f2729b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.2.4 +* Adding Add-HueLight (#18) +* Adding Get-HueLight -New (#21) +* Building LightScript with PipeScript (#20) +--- + ## 0.2.3 * Set-NanoLeaf: Fixing #17 * Send-HueBridge: Adding logging diff --git a/LightScript.psd1 b/LightScript.psd1 index 8748213..0795be4 100644 --- a/LightScript.psd1 +++ b/LightScript.psd1 @@ -1,5 +1,5 @@ @{ - ModuleVersion = '0.2.3' + ModuleVersion = '0.2.4' RootModule = 'LightScript.psm1' Description = 'Smarter Lighting with PowerShell' FormatsToProcess = 'LightScript.format.ps1xml' @@ -14,6 +14,12 @@ LicenseURI = 'https://github.com/StartAutomating/LightScript/blob/main/LICENSE' IconURI = 'https://github.com/StartAutomating/LightScript/blob/main/Assets/LightScript.png' ReleaseNotes = @' +## 0.2.4 +* Adding Add-HueLight (#18) +* Adding Get-HueLight -New (#21) +* Building LightScript with PipeScript (#20) +--- + ## 0.2.3 * Set-NanoLeaf: Fixing #17 * Send-HueBridge: Adding logging From 2510a42d3dea07bca114a1034da5531f05632f34 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:21:54 +0000 Subject: [PATCH 26/36] Updating README.md --- docs/README.md | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/docs/README.md b/docs/README.md index 484a77b..41542a8 100644 --- a/docs/README.md +++ b/docs/README.md @@ -63,7 +63,7 @@ Set-HueLight -RoomName Kitchen -RGBColor "#1245ab" Set-HueLight -Name Nightstand1 -Off # Make all of the lights blink once -Set-HueLight -Alert select +Set-HueLight -Effect select # Make all of the lights loop color Set-HueLight -Effect colorloop @@ -74,7 +74,7 @@ Set-HueLight -Effect none Bridges also coordinate schedules, read and write sensors, and process rules. -~~~PowerShell +~~~ # Get all of the sensors Get-HueSensor @@ -177,7 +177,7 @@ Register-EngineEvent -SourceIdentifier NanoLeaf.Touch.Down -Action { $event.MessageData | Out-Host } -~~~ +~~~PowerShell ## Twinkly @@ -260,31 +260,3 @@ Set-Pixoo -Timer "00:01:00" # Set a timer for one minute Set-Pixoo -RedScore 1 -BlueScore 0 # Keep a scoreboard ~~~ - -## Elgato Key Lighting - -Elgato makes Key Lighting for video recording and streaming. - -The Elgato Control Center will show you the IP Address of your Key Lights from the Accessories' settings. - -Once you know this, run: - -~~~PowerShell -Connect-KeyLight -IPAddress $TheKeyLightIPAddress -~~~ - -Once authenticated, you can: - -~~~PowerShell -# Get information about your lights -Get-KeyLight - -# Turn on your Key Light: -Set-KeyLight -On - -# Change the brightness and ColorTemperature: -Set-KeyLight -ColorTemperature 270 -Brightness 0.25 - -# Turn on and change the brightness at the same time: -Set-KeyLight -On -Brightness 0.25 -~~~ From 0448c6a603cb0dc76b312d792534b7fe008288c9 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:21:54 +0000 Subject: [PATCH 27/36] Updating README.md --- docs/README.md | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index 41542a8..484a77b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -63,7 +63,7 @@ Set-HueLight -RoomName Kitchen -RGBColor "#1245ab" Set-HueLight -Name Nightstand1 -Off # Make all of the lights blink once -Set-HueLight -Effect select +Set-HueLight -Alert select # Make all of the lights loop color Set-HueLight -Effect colorloop @@ -74,7 +74,7 @@ Set-HueLight -Effect none Bridges also coordinate schedules, read and write sensors, and process rules. -~~~ +~~~PowerShell # Get all of the sensors Get-HueSensor @@ -177,7 +177,7 @@ Register-EngineEvent -SourceIdentifier NanoLeaf.Touch.Down -Action { $event.MessageData | Out-Host } -~~~PowerShell +~~~ ## Twinkly @@ -260,3 +260,31 @@ Set-Pixoo -Timer "00:01:00" # Set a timer for one minute Set-Pixoo -RedScore 1 -BlueScore 0 # Keep a scoreboard ~~~ + +## Elgato Key Lighting + +Elgato makes Key Lighting for video recording and streaming. + +The Elgato Control Center will show you the IP Address of your Key Lights from the Accessories' settings. + +Once you know this, run: + +~~~PowerShell +Connect-KeyLight -IPAddress $TheKeyLightIPAddress +~~~ + +Once authenticated, you can: + +~~~PowerShell +# Get information about your lights +Get-KeyLight + +# Turn on your Key Light: +Set-KeyLight -On + +# Change the brightness and ColorTemperature: +Set-KeyLight -ColorTemperature 270 -Brightness 0.25 + +# Turn on and change the brightness at the same time: +Set-KeyLight -On -Brightness 0.25 +~~~ From dbc1129f4b59b51df5aa9d9e6c7527d9a2d706ce Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:21:54 +0000 Subject: [PATCH 28/36] Updating CHANGELOG.md --- docs/CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index cf251e9..9f2729b 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.2.4 +* Adding Add-HueLight (#18) +* Adding Get-HueLight -New (#21) +* Building LightScript with PipeScript (#20) +--- + ## 0.2.3 * Set-NanoLeaf: Fixing #17 * Send-HueBridge: Adding logging From 594bc954092ec27b95dbb62c1ccf34a2142e0ee3 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Sat, 23 Jul 2022 21:23:22 -0700 Subject: [PATCH 29/36] Updating Module Version [0.2.4] and CHANGELOG --- CHANGELOG.md | 1 + LightScript.psd1 | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f2729b..3685882 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## 0.2.4 * Adding Add-HueLight (#18) * Adding Get-HueLight -New (#21) +* Fixing Rename-HueLight (#19) * Building LightScript with PipeScript (#20) --- diff --git a/LightScript.psd1 b/LightScript.psd1 index 0795be4..88175cf 100644 --- a/LightScript.psd1 +++ b/LightScript.psd1 @@ -17,6 +17,7 @@ ## 0.2.4 * Adding Add-HueLight (#18) * Adding Get-HueLight -New (#21) +* Fixing Rename-HueLight (#19) * Building LightScript with PipeScript (#20) --- From 43aab9483eb848fc6c21c408f9e920f42faf0879 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:24:15 +0000 Subject: [PATCH 30/36] Updating README.md --- docs/README.md | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/docs/README.md b/docs/README.md index 484a77b..41542a8 100644 --- a/docs/README.md +++ b/docs/README.md @@ -63,7 +63,7 @@ Set-HueLight -RoomName Kitchen -RGBColor "#1245ab" Set-HueLight -Name Nightstand1 -Off # Make all of the lights blink once -Set-HueLight -Alert select +Set-HueLight -Effect select # Make all of the lights loop color Set-HueLight -Effect colorloop @@ -74,7 +74,7 @@ Set-HueLight -Effect none Bridges also coordinate schedules, read and write sensors, and process rules. -~~~PowerShell +~~~ # Get all of the sensors Get-HueSensor @@ -177,7 +177,7 @@ Register-EngineEvent -SourceIdentifier NanoLeaf.Touch.Down -Action { $event.MessageData | Out-Host } -~~~ +~~~PowerShell ## Twinkly @@ -260,31 +260,3 @@ Set-Pixoo -Timer "00:01:00" # Set a timer for one minute Set-Pixoo -RedScore 1 -BlueScore 0 # Keep a scoreboard ~~~ - -## Elgato Key Lighting - -Elgato makes Key Lighting for video recording and streaming. - -The Elgato Control Center will show you the IP Address of your Key Lights from the Accessories' settings. - -Once you know this, run: - -~~~PowerShell -Connect-KeyLight -IPAddress $TheKeyLightIPAddress -~~~ - -Once authenticated, you can: - -~~~PowerShell -# Get information about your lights -Get-KeyLight - -# Turn on your Key Light: -Set-KeyLight -On - -# Change the brightness and ColorTemperature: -Set-KeyLight -ColorTemperature 270 -Brightness 0.25 - -# Turn on and change the brightness at the same time: -Set-KeyLight -On -Brightness 0.25 -~~~ From 192a52ce37a51ebe2cb8e19f4a4ee3e76eda0bef Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:24:15 +0000 Subject: [PATCH 31/36] Updating README.md --- docs/README.md | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index 41542a8..484a77b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -63,7 +63,7 @@ Set-HueLight -RoomName Kitchen -RGBColor "#1245ab" Set-HueLight -Name Nightstand1 -Off # Make all of the lights blink once -Set-HueLight -Effect select +Set-HueLight -Alert select # Make all of the lights loop color Set-HueLight -Effect colorloop @@ -74,7 +74,7 @@ Set-HueLight -Effect none Bridges also coordinate schedules, read and write sensors, and process rules. -~~~ +~~~PowerShell # Get all of the sensors Get-HueSensor @@ -177,7 +177,7 @@ Register-EngineEvent -SourceIdentifier NanoLeaf.Touch.Down -Action { $event.MessageData | Out-Host } -~~~PowerShell +~~~ ## Twinkly @@ -260,3 +260,31 @@ Set-Pixoo -Timer "00:01:00" # Set a timer for one minute Set-Pixoo -RedScore 1 -BlueScore 0 # Keep a scoreboard ~~~ + +## Elgato Key Lighting + +Elgato makes Key Lighting for video recording and streaming. + +The Elgato Control Center will show you the IP Address of your Key Lights from the Accessories' settings. + +Once you know this, run: + +~~~PowerShell +Connect-KeyLight -IPAddress $TheKeyLightIPAddress +~~~ + +Once authenticated, you can: + +~~~PowerShell +# Get information about your lights +Get-KeyLight + +# Turn on your Key Light: +Set-KeyLight -On + +# Change the brightness and ColorTemperature: +Set-KeyLight -ColorTemperature 270 -Brightness 0.25 + +# Turn on and change the brightness at the same time: +Set-KeyLight -On -Brightness 0.25 +~~~ From c800c47ed438575b15f40def7eedff9f18de9eb6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:24:16 +0000 Subject: [PATCH 32/36] Updating CHANGELOG.md --- docs/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 9f2729b..3685882 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,7 @@ ## 0.2.4 * Adding Add-HueLight (#18) * Adding Get-HueLight -New (#21) +* Fixing Rename-HueLight (#19) * Building LightScript with PipeScript (#20) --- From 7322e037e7728f42ea6ab6f1ae6c236b2dd91102 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:28:17 +0000 Subject: [PATCH 33/36] Updating README.md --- docs/README.md | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/docs/README.md b/docs/README.md index 2663df7..41542a8 100644 --- a/docs/README.md +++ b/docs/README.md @@ -63,7 +63,7 @@ Set-HueLight -RoomName Kitchen -RGBColor "#1245ab" Set-HueLight -Name Nightstand1 -Off # Make all of the lights blink once -Set-HueLight -Alert select +Set-HueLight -Effect select # Make all of the lights loop color Set-HueLight -Effect colorloop @@ -74,7 +74,7 @@ Set-HueLight -Effect none Bridges also coordinate schedules, read and write sensors, and process rules. -~~~PowerShell +~~~ # Get all of the sensors Get-HueSensor @@ -177,6 +177,8 @@ Register-EngineEvent -SourceIdentifier NanoLeaf.Touch.Down -Action { $event.MessageData | Out-Host } +~~~PowerShell + ## Twinkly Twinkly makes smart lights with per-LED control. @@ -258,31 +260,3 @@ Set-Pixoo -Timer "00:01:00" # Set a timer for one minute Set-Pixoo -RedScore 1 -BlueScore 0 # Keep a scoreboard ~~~ - -## Elgato Key Lighting - -Elgato makes Key Lighting for video recording and streaming. - -The Elgato Control Center will show you the IP Address of your Key Lights from the Accessories' settings. - -Once you know this, run: - -~~~PowerShell -Connect-KeyLight -IPAddress $TheKeyLightIPAddress -~~~ - -Once authenticated, you can: - -~~~PowerShell -# Get information about your lights -Get-KeyLight - -# Turn on your Key Light: -Set-KeyLight -On - -# Change the brightness and ColorTemperature: -Set-KeyLight -ColorTemperature 270 -Brightness 0.25 - -# Turn on and change the brightness at the same time: -Set-KeyLight -On -Brightness 0.25 -~~~ \ No newline at end of file From 05b186d166f5a318c826877f67a0c2528113d0cf Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:28:18 +0000 Subject: [PATCH 34/36] Updating README.md --- docs/README.md | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index 41542a8..484a77b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -63,7 +63,7 @@ Set-HueLight -RoomName Kitchen -RGBColor "#1245ab" Set-HueLight -Name Nightstand1 -Off # Make all of the lights blink once -Set-HueLight -Effect select +Set-HueLight -Alert select # Make all of the lights loop color Set-HueLight -Effect colorloop @@ -74,7 +74,7 @@ Set-HueLight -Effect none Bridges also coordinate schedules, read and write sensors, and process rules. -~~~ +~~~PowerShell # Get all of the sensors Get-HueSensor @@ -177,7 +177,7 @@ Register-EngineEvent -SourceIdentifier NanoLeaf.Touch.Down -Action { $event.MessageData | Out-Host } -~~~PowerShell +~~~ ## Twinkly @@ -260,3 +260,31 @@ Set-Pixoo -Timer "00:01:00" # Set a timer for one minute Set-Pixoo -RedScore 1 -BlueScore 0 # Keep a scoreboard ~~~ + +## Elgato Key Lighting + +Elgato makes Key Lighting for video recording and streaming. + +The Elgato Control Center will show you the IP Address of your Key Lights from the Accessories' settings. + +Once you know this, run: + +~~~PowerShell +Connect-KeyLight -IPAddress $TheKeyLightIPAddress +~~~ + +Once authenticated, you can: + +~~~PowerShell +# Get information about your lights +Get-KeyLight + +# Turn on your Key Light: +Set-KeyLight -On + +# Change the brightness and ColorTemperature: +Set-KeyLight -ColorTemperature 270 -Brightness 0.25 + +# Turn on and change the brightness at the same time: +Set-KeyLight -On -Brightness 0.25 +~~~ From 8ed6a6e7bcb3a29032de0c9e75a004daeeacfaa0 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Sat, 23 Jul 2022 21:31:39 -0700 Subject: [PATCH 35/36] Updating about topic (adding Add-HueLight example) --- README.md | 8 ++++++ en-us/about_LightScript.help.txt | 42 +++++++++++++++++++++++++++++--- 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 484a77b..d49f36f 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,14 @@ Add-HueSchedule -In '00:10:00' -Command (Set-HueLight -Alert lselect -OutputInpu ~~~ +You can also add new lights to a bridge: + +~~~PowerShell +Add-HueLight + +Get-HueLight -New +~~~ + ### Hue Devices and Smart Aliases Set-HueLight supports smart aliasing. diff --git a/en-us/about_LightScript.help.txt b/en-us/about_LightScript.help.txt index 41542a8..d49f36f 100644 --- a/en-us/about_LightScript.help.txt +++ b/en-us/about_LightScript.help.txt @@ -63,7 +63,7 @@ Set-HueLight -RoomName Kitchen -RGBColor "#1245ab" Set-HueLight -Name Nightstand1 -Off # Make all of the lights blink once -Set-HueLight -Effect select +Set-HueLight -Alert select # Make all of the lights loop color Set-HueLight -Effect colorloop @@ -74,7 +74,7 @@ Set-HueLight -Effect none Bridges also coordinate schedules, read and write sensors, and process rules. -~~~ +~~~PowerShell # Get all of the sensors Get-HueSensor @@ -87,6 +87,14 @@ Add-HueSchedule -In '00:10:00' -Command (Set-HueLight -Alert lselect -OutputInpu ~~~ +You can also add new lights to a bridge: + +~~~PowerShell +Add-HueLight + +Get-HueLight -New +~~~ + ### Hue Devices and Smart Aliases Set-HueLight supports smart aliasing. @@ -177,7 +185,7 @@ Register-EngineEvent -SourceIdentifier NanoLeaf.Touch.Down -Action { $event.MessageData | Out-Host } -~~~PowerShell +~~~ ## Twinkly @@ -260,3 +268,31 @@ Set-Pixoo -Timer "00:01:00" # Set a timer for one minute Set-Pixoo -RedScore 1 -BlueScore 0 # Keep a scoreboard ~~~ + +## Elgato Key Lighting + +Elgato makes Key Lighting for video recording and streaming. + +The Elgato Control Center will show you the IP Address of your Key Lights from the Accessories' settings. + +Once you know this, run: + +~~~PowerShell +Connect-KeyLight -IPAddress $TheKeyLightIPAddress +~~~ + +Once authenticated, you can: + +~~~PowerShell +# Get information about your lights +Get-KeyLight + +# Turn on your Key Light: +Set-KeyLight -On + +# Change the brightness and ColorTemperature: +Set-KeyLight -ColorTemperature 270 -Brightness 0.25 + +# Turn on and change the brightness at the same time: +Set-KeyLight -On -Brightness 0.25 +~~~ From b30eaa1333fa711442d0b91df40b1420cef42078 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sun, 24 Jul 2022 04:32:30 +0000 Subject: [PATCH 36/36] Updating README.md --- docs/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/README.md b/docs/README.md index 484a77b..d49f36f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -87,6 +87,14 @@ Add-HueSchedule -In '00:10:00' -Command (Set-HueLight -Alert lselect -OutputInpu ~~~ +You can also add new lights to a bridge: + +~~~PowerShell +Add-HueLight + +Get-HueLight -New +~~~ + ### Hue Devices and Smart Aliases Set-HueLight supports smart aliasing.