Skip to content

Commit

Permalink
Add documentation for pilight dimmer as light (#11531)
Browse files Browse the repository at this point in the history
* Add documentation for pilight dimmer as light

see home-assistant/core#30107

* Change dimmers to light
  • Loading branch information
Trekky12 authored and cgarwood committed Jan 7, 2020
1 parent 639d904 commit 3f58993
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions source/_integrations/pilight.markdown
Expand Up @@ -22,6 +22,7 @@ There is currently support for the following device types within Home Assistant:
- [Binary Sensor](#binary-sensor)
- [Sensor](#sensor)
- [Switch](#switch)
- [Light](#light)

## Configuration

Expand Down Expand Up @@ -304,6 +305,52 @@ switch:
state: 'off'
```

## Light

Pilight dimmer devices, which can have different brightness values, can be used as a light.
The configuration parameters are the same for dimmers and switches.

{% configuration %}
lights:
description: The list that contains all command lights.
required: true
type: string
keys:
entry:
description: Name of the command light, which are the same like for switches. Multiple entries are possible.
required: true
type: list
{% endconfiguration %}

### Example

```yaml
light:
- platform: pilight
lights:
test2:
on_code:
protocol: kaku_dimmer
id: 23298822
unit: 10
'on': 1
off_code:
protocol: kaku_dimmer
id: 23298822
unit: 10
'off': 1
on_code_receive:
protocol: kaku_dimmer
id: 23298822
unit: 10
state: 'on'
off_code_receive:
protocol: kaku_dimmer
id: 23298822
unit: 10
state: 'off'
```

## Troubleshooting

- A list of tested RF transceiver hardware is available [here](https://manual.pilight.org/electronics/index.html). This might be useful before buying.
Expand Down

0 comments on commit 3f58993

Please sign in to comment.