Skip to content

Commit

Permalink
Add host option for rpi_gpio_pwm component (home-assistant#12028)
Browse files Browse the repository at this point in the history
* Add host option for rpi_gpio_pwm component

* ✏️ Tweak

* Applied textlint fixes

* Update source/_integrations/rpi_gpio_pwm.markdown

Co-Authored-By: springstan <[email protected]>

Co-authored-by: Klaas Schoute <[email protected]>
Co-authored-by: springstan <[email protected]>
  • Loading branch information
3 people authored Feb 18, 2020
1 parent 02a8999 commit 3aac04b
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion source/_integrations/rpi_gpio_pwm.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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)).

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
```

0 comments on commit 3aac04b

Please sign in to comment.