[hdpowerview] Add support for setting repeater LED color and brightness (#12308)

* Add support for setting repeater LED color and brightness.

Fixes #12307

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen
2022-02-19 21:48:38 +01:00
committed by GitHub
parent 33b613d283
commit 2e72ac78fd
9 changed files with 180 additions and 4 deletions

View File

@@ -105,6 +105,8 @@ All of these channels appear in the binding, but only those which have a physica
| Channel | Item Type | Description |
|-----------------|-----------|-------------------------------|
| color | Color | Controls the color of the LED ring. A switch item can be linked: ON = white, OFF = turn off |
| brightness | Dimmer | Controls the brightness of the LED ring. |
| identify | String | Flash repeater to identify. Valid values are: `IDENTIFY` |
| blinkingEnabled | Switch | Blink during commands. |
@@ -238,6 +240,8 @@ Number Living_Room_Shade_SignalStrength "Living Room Shade Signal Strength" {cha
Repeater items:
```
Color Bedroom_Repeater_Color "Bedroom Repeater Color" {channel="hdpowerview:repeater:home:r16384:color"}
Dimmer Bedroom_Repeater_Brightness "Bedroom Repeater Brightness" {channel="hdpowerview:repeater:home:r16384:brightness"}
String Bedroom_Repeater_Identify "Bedroom Repeater Identify" {channel="hdpowerview:repeater:home:r16384:identify"}
Switch Bedroom_Repeater_BlinkingEnabled "Bedroom Repeater Blinking Enabled [%s]" {channel="hdpowerview:repeater:home:r16384:blinkingEnabled"}
```
@@ -272,6 +276,9 @@ Frame label="Living Room" {
Text item=Living_Room_Shade_Battery_Voltage
}
Frame label="Bedroom" {
Colorpicker item=PowerViewRepeater_Color
Switch item=PowerViewRepeater_Color
Slider item=PowerViewRepeater_Brightness
Switch item=Bedroom_Repeater_Identify mappings=[IDENTIFY="Identify"]
Switch item=Bedroom_Repeater_BlinkingEnabled
}