mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-27 03:07:14 +00:00
Update rpi_gpio_pwm light component configuration (#7433)
* Update rpi_gpio_pwm light component configuration * Remove period
This commit is contained in:
parent
257a179bf2
commit
0699356655
@ -33,15 +33,39 @@ light:
|
|||||||
type: simple
|
type: simple
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
{% configuration %}
|
||||||
|
leds:
|
||||||
- **leds** array (*Required*): Can contain multiple LEDs.
|
description: Can contain multiple LEDs.
|
||||||
- **name** (*Required*): The name of the LED.
|
required: true
|
||||||
- **driver** (*Required*): The driver which controls the LED. Choose either `gpio` or `pca9685`.
|
type: list
|
||||||
- **pins** (*Required*): The pins connected to the LED as a list.. The order of pins is determined by the specified type.
|
keys:
|
||||||
- **type** (*Required*): The type of LED. Choose either `rgb`, `rgbw` or `simple`.
|
name:
|
||||||
- **freq** (*Optional*): The PWM frequency. (Default: `200`)
|
description: The name of the LED.
|
||||||
- **address** (*Optional*): The address of the PCA9685 driver. (Default: `0x40`)
|
required: true
|
||||||
|
type: string
|
||||||
|
driver:
|
||||||
|
description: The driver which controls the LED. Choose either `gpio` or `pca9685`.
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
pins:
|
||||||
|
description: The pins connected to the LED as a list. The order of pins is determined by the specified type.
|
||||||
|
required: true
|
||||||
|
type: [list, integer]
|
||||||
|
type:
|
||||||
|
description: The type of LED. Choose either `rgb`, `rgbw` or `simple`.
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
freq:
|
||||||
|
description: The PWM frequency.
|
||||||
|
required: false
|
||||||
|
default: 200
|
||||||
|
type: integer
|
||||||
|
address:
|
||||||
|
description: The address of the PCA9685 driver.
|
||||||
|
required: false
|
||||||
|
default: 0x40
|
||||||
|
type: string
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
## {% linkable_title Examples %}
|
## {% linkable_title Examples %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user