diff --git a/components/index.html b/components/index.html
index e44e582c79..151e1c998e 100644
--- a/components/index.html
+++ b/components/index.html
@@ -521,7 +521,7 @@ var allComponents = [
{url:"/components/light.osramlightify/", title:"Osram Lightify", cat:"light", featured: false, v: 21, logo: "osramlightify.png"},
{url:"/components/device_tracker.owntracks/", title:"Owntracks", cat:"presence-detection", featured: true, v: 7, logo: "owntracks.png"},
{url:"/components/sensor.pvoutput/", title:"PVOutput Sensor", cat:"energy", featured: false, v: 33, logo: "pvoutput.png"},
-{url:"/components/light.rpi_gpio_pwm/", title:"PWM LED", cat:"light", featured: false, v: 43, logo: ""},
+{url:"/components/light.rpi_gpio_pwm/", title:"PWM LED", cat:"light", featured: false, v: 43, logo: "raspberry-pi.png"},
{url:"/components/media_player.panasonic_viera/", title:"Panasonic Viera TV", cat:"media-player", featured: false, v: 17, logo: "panasonic.png"},
{url:"/components/media_player.pandora/", title:"Pandora", cat:"media-player", featured: false, v: 22, logo: "pandora.png"},
{url:"/components/panel_custom/", title:"Panel Custom", cat:"front-end", featured: false, v: 26, logo: "home-assistant.png"},
diff --git a/components/light.rpi_gpio_pwm/index.html b/components/light.rpi_gpio_pwm/index.html
index 8ac69ed08f..78f9994d2f 100644
--- a/components/light.rpi_gpio_pwm/index.html
+++ b/components/light.rpi_gpio_pwm/index.html
@@ -8,7 +8,7 @@
PWM LED - Home Assistant
-
+
@@ -16,12 +16,12 @@
-
+
-
+
@@ -66,42 +66,57 @@
- The rpi_gpio_pwm
platform allows to control multiple lights using pulse-width modulation, for example led strips. It supports one-color, RGB and RGBW leds driven by GPIOs of an Raspberry Pi or a PCA9685 controller.
- Configuration
+ The rpi_gpio_pwm
platform allows to control multiple lights using pulse-width modulation, for example led strips. It supports one-color, RGB and RGBW LEDs driven by GPIOs of a Raspberry Pi or a PCA9685 controller.
+To enable this platform, add the following lines to your configuration.yaml
:
# Example configuration.yaml entry
light :
- platform : rpi_gpio_pwm
- leds :
- # One-color led directly connected to GPIO
- - name : Lightstrip Cupboard
- driver : gpio
- pins : [ 17 ]
- type : simple
- # RGB led connected to PCA9685 controller
- - name : TV Backlight
- driver : pca9685
- pins : [ 0 , 1 , 2 ] # [R, G, B]
- type : rgb
- # RGBW led connected to PCA9685 controller
- - name : Lightstrip Desk
- driver : pca9685
- pins : [ 3 , 4 , 5 , 6 ] # [R, G, B, W]
- type : rgbw
+ - platform : rpi_gpio_pwm
+ leds :
+ - name : Lightstrip Cupboard
+ driver : gpio
+ pins : [ 17 ]
+ type : simple
Configuration variables:
- leds array (Required ):
+ leds array (Required ): Can contain multiple LEDs.
- name (Required ): The name of the led.
- driver (Required ): The driver, which controls the led. Choose either gpio
or pca9685
.
- pins (Required ): The pins connected to the led. The order of pins is determined by the specified type.
- type (Required ): The type of led. Choose either rgb
, rgbw
or simple
.
+ name (Required ): The name of the LED.
+ driver (Required ): The driver which controls the LED. Choose either gpio
or pca9685
.
+ pins (Required ): The pins connected to the LED as a list.. The order of pins is determined by the specified type.
+ type (Required ): The type of LED. Choose either rgb
, rgbw
or simple
.
freq (Optional ): The PWM frequency. (Default: 200
)
address (Optional ): The address of the PCA9685 driver. (Default: 0x40
)
+ Examples
+In this section you find some real life examples of how to use this sensor.
+ RGB LED connected to PCA9685 controller
+This example uses a PCA9685 controller to control a RGB LED.
+# Example configuration.yaml entry
+light :
+ - platform : rpi_gpio_pwm
+ leds :
+ - name : TV Backlight
+ driver : pca9685
+ pins : [ 0 , 1 , 2 ] # [R, G, B]
+ type : rgb
+
+
+ RGBW LED connected to PCA9685 controller
+This example uses a PCA9685 controller to interact with a RGBW LED.
+# Example configuration.yaml entry
+light :
+ - platform : rpi_gpio_pwm
+ leds :
+ - name : Lightstrip Desk
+ driver : pca9685
+ pins : [ 3 , 4 , 5 , 6 ] # [R, G, B, W]
+ type : rgbw
+
+