|
2 | 2 | Add-HueLight |
3 | 3 | ------------ |
4 | 4 | ### Synopsis |
| 5 | +Adds lights to Hue |
5 | 6 |
|
6 | | -Add-HueLight [[-DeviceID] <string[]>] [-WhatIf] [-Confirm] [<CommonParameters>] |
| 7 | +--- |
| 8 | +### Description |
7 | 9 |
|
| 10 | +Adds new lights to a Hue Bridge. |
8 | 11 |
|
9 | 12 | --- |
10 | | -### Description |
| 13 | +### Related Links |
| 14 | +* [Get-HueLight](Get-HueLight.md) |
| 15 | +* [Set-HueLight](Set-HueLight.md) |
11 | 16 | --- |
12 | | -### Parameters |
13 | | -#### **Confirm** |
14 | | --Confirm is an automatic variable that is created when a command has ```[CmdletBinding(SupportsShouldProcess)]```. |
15 | | --Confirm is used to -Confirm each operation. |
16 | | - |
17 | | -If you pass ```-Confirm:$false``` you will not be prompted. |
18 | | - |
19 | | - |
20 | | -If the command sets a ```[ConfirmImpact("Medium")]``` which is lower than ```$confirmImpactPreference```, you will not be prompted unless -Confirm is passed. |
| 17 | +### Examples |
| 18 | +#### EXAMPLE 1 |
| 19 | +```PowerShell |
| 20 | +Add-HueLight # Search for new lights |
| 21 | +``` |
| 22 | + |
| 23 | +#### EXAMPLE 2 |
| 24 | +```PowerShell |
| 25 | +Add-HueLight -DeviceID $serialNumber # Add a new light by serial number. |
| 26 | +``` |
21 | 27 |
|
| 28 | +#### EXAMPLE 3 |
| 29 | +```PowerShell |
| 30 | +Add-HueLight # Search for new lights |
| 31 | +Get-HueLight -New # Get-HueLight -New will return the new lights |
| 32 | +``` |
| 33 | + |
| 34 | +--- |
| 35 | +### Parameters |
22 | 36 | #### **DeviceID** |
23 | 37 |
|
| 38 | +One or more Device Identifiers (serial numbers ). |
| 39 | +Use this parameter when adding lights that have already been assigned to another bridge. |
| 40 | + |
| 41 | + |
| 42 | + |
24 | 43 | |Type |Requried|Postion|PipelineInput| |
25 | 44 | |----------------|--------|-------|-------------| |
26 | | -|```[string[]]```|false |0 |false | |
| 45 | +|```[String[]]```|false |1 |false | |
27 | 46 | --- |
28 | 47 | #### **WhatIf** |
29 | 48 | -WhatIf is an automatic variable that is created when a command has ```[CmdletBinding(SupportsShouldProcess)]```. |
30 | 49 | -WhatIf is used to see what would happen, or return operations without executing them |
31 | | ---- |
32 | | -### Inputs |
33 | | -None |
34 | | - |
35 | | - |
36 | | ---- |
37 | | -### Outputs |
38 | | -System.Object |
39 | | - |
| 50 | +#### **Confirm** |
| 51 | +-Confirm is an automatic variable that is created when a command has ```[CmdletBinding(SupportsShouldProcess)]```. |
| 52 | +-Confirm is used to -Confirm each operation. |
| 53 | + |
| 54 | +If you pass ```-Confirm:$false``` you will not be prompted. |
| 55 | + |
| 56 | + |
| 57 | +If the command sets a ```[ConfirmImpact("Medium")]``` which is lower than ```$confirmImpactPreference```, you will not be prompted unless -Confirm is passed. |
40 | 58 |
|
41 | 59 | --- |
42 | 60 | ### Syntax |
43 | 61 | ```PowerShell |
44 | | -[32;1msyntaxItem[0m |
45 | | -``` |
46 | | -```PowerShell |
47 | | -[32;1m----------[0m |
48 | | -``` |
49 | | -```PowerShell |
50 | | -{@{name=Add-HueLight; CommonParameters=True; parameter=System.Object[]}} |
| 62 | +Add-HueLight [[-DeviceID] <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>] |
51 | 63 | ``` |
52 | 64 | --- |
53 | 65 |
|
|
0 commit comments