Skip to content

Commit

Permalink
feat: $LightScript ( Fixes #104 )
Browse files Browse the repository at this point in the history
  • Loading branch information
StartAutomating authored and StartAutomating committed Jan 14, 2024
1 parent 044e33b commit bb49a0d
Showing 1 changed file with 30 additions and 105 deletions.
135 changes: 30 additions & 105 deletions docs/Write-HueSensor.md
Original file line number Diff line number Diff line change
@@ -1,172 +1,97 @@
Write-HueSensor
---------------

### Synopsis
Write Hue Sensors

---

### Description

Writes data to sensors on the Hue Bridge

---

### Related Links
* [Read-HueSensor](Read-HueSensor.md)



* [Get-HueSensor](Get-HueSensor.md)



* [Get-HueBridge](Get-HueBridge.md)



* [Add-HueSensor](Add-HueSensor.md)



* [Remove-HueSensor](Remove-HueSensor.md)



---

### Examples
#### EXAMPLE 1
> EXAMPLE 1
```PowerShell
Write-HueSensor -Name ChaseStatus1 -Data @{status=0}
```

---

### Parameters
#### **Name**

If provided, will filter returned items by name

|Type |Required|Position|PipelineInput |
|------------|--------|--------|---------------------|
|`[String[]]`|false |1 |true (ByPropertyName)|


> **Type**: ```[String[]]```
> **Required**: false
> **Position**: 1
> **PipelineInput**:true (ByPropertyName)


---
#### **RegularExpression**

If set, will treat the Name parameter as a regular expression pattern. By default, Name will be treated as a wildcard

|Type |Required|Position|PipelineInput |
|----------|--------|--------|---------------------|
|`[Switch]`|false |named |true (ByPropertyName)|


> **Type**: ```[Switch]```
> **Required**: false
> **Position**: named
> **PipelineInput**:true (ByPropertyName)


---
#### **ExactMatch**

If set, will treat the Name parameter as a specific match

|Type |Required|Position|PipelineInput |
|----------|--------|--------|---------------------|
|`[Switch]`|false |named |true (ByPropertyName)|


> **Type**: ```[Switch]```
> **Required**: false
> **Position**: named
> **PipelineInput**:true (ByPropertyName)


---
#### **ID**

If provided, will filter returned items by ID

|Type |Required|Position|PipelineInput |
|------------|--------|--------|---------------------|
|`[String[]]`|false |named |true (ByPropertyName)|


> **Type**: ```[String[]]```
> **Required**: false
> **Position**: named
> **PipelineInput**:true (ByPropertyName)


---
#### **Config**

If set, will write values from to configuration. By default, values are written to the sensor state.

|Type |Required|Position|PipelineInput|
|----------|--------|--------|-------------|
|`[Switch]`|false |named |false |


> **Type**: ```[Switch]```
> **Required**: false
> **Position**: named
> **PipelineInput**:false


---
#### **Data**

The data that will be written to the sensor

|Type |Required|Position|PipelineInput |
|------------|--------|--------|--------------|
|`[PSObject]`|true |named |true (ByValue)|


> **Type**: ```[PSObject]```
> **Required**: true
> **Position**: named
> **PipelineInput**:true (ByValue)


---
#### **OutputInput**

If set, will output the data that would be sent to the bridge. This is useful for creating scheudles, routines, and other macros.



> **Type**: ```[Switch]```
> **Required**: false
> **Position**: named
> **PipelineInput**:true (ByPropertyName)

|Type |Required|Position|PipelineInput |
|----------|--------|--------|---------------------|
|`[Switch]`|false |named |true (ByPropertyName)|

---

### Outputs
* [Management.Automation.PSObject](https://learn.microsoft.com/en-us/dotnet/api/System.Management.Automation.PSObject)




---

### Syntax
```PowerShell
Write-HueSensor [[-Name] <String[]>] [-RegularExpression] [-ExactMatch] [-ID <String[]>] [-Config] -Data <PSObject> [-OutputInput] [<CommonParameters>]
```
---

0 comments on commit bb49a0d

Please sign in to comment.