mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Add host option for rpi_gpio_pwm component (#12028)
* Add host option for rpi_gpio_pwm component
* ✏️ Tweak
* Applied textlint fixes
* Update source/_integrations/rpi_gpio_pwm.markdown
Co-Authored-By: springstan <46536646+springstan@users.noreply.github.com>
Co-authored-by: Klaas Schoute <klaas_schoute@hotmail.com>
Co-authored-by: springstan <46536646+springstan@users.noreply.github.com>
This commit is contained in:
parent
02a8999c07
commit
3aac04b24d
@ -8,7 +8,7 @@ ha_release: 0.43
|
||||
logo: raspberry-pi.png
|
||||
---
|
||||
|
||||
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.
|
||||
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 (same host or remote) or a PCA9685 controller.
|
||||
|
||||
For controlling the GPIOs, the platform connects to the [pigpio-daemon](http://abyz.me.uk/rpi/pigpio/pigpiod.html), which must be running. On Raspbian Jessie 2016-05-10 or newer the `pigpio` library is already included. On other operating systems it needs to be installed first (see [installation instructions](https://github.com/soldag/python-pwmled#installation)).
|
||||
|
||||
@ -59,6 +59,10 @@ leds:
|
||||
required: false
|
||||
default: 0x40
|
||||
type: string
|
||||
host:
|
||||
description: The remote host address for the GPIO driver.
|
||||
required: false
|
||||
type: string
|
||||
{% endconfiguration %}
|
||||
|
||||
## Examples
|
||||
@ -94,3 +98,17 @@ light:
|
||||
pins: [3, 4, 5, 6] # [R, G, B, W]
|
||||
type: rgbw
|
||||
```
|
||||
|
||||
### RGB LED connected to the GPIO pins of an remote Raspberry Pi.
|
||||
|
||||
On the Raspberry Pi the pigpio daemon is running on the default port 6666.
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
light:
|
||||
- platform: rpi_gpio_pwm
|
||||
leds:
|
||||
- name: Lightstrip Sideboard
|
||||
driver: gpio
|
||||
host: 192.168.0.66
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user