From 728ac06aac6bc8ca2c94d159a4f0f48f4b631632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20P=C3=B6schl?= Date: Sun, 9 Feb 2020 16:50:11 +0100 Subject: [PATCH 1/4] Add host option for rpi_gpio_pwm component --- source/_integrations/rpi_gpio_pwm.markdown | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/source/_integrations/rpi_gpio_pwm.markdown b/source/_integrations/rpi_gpio_pwm.markdown index fcc13105bef5..0926f557dd66 100644 --- a/source/_integrations/rpi_gpio_pwm.markdown +++ b/source/_integrations/rpi_gpio_pwm.markdown @@ -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,11 @@ leds: required: false default: 0x40 type: string + host: + description: The remote host address for the GPIO driver. + required: false + default: '' + type: string {% endconfiguration %} ## Examples @@ -94,3 +99,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 deamon 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 +``` \ No newline at end of file From d369f900894132d022321d1e1de7e039365ed149 Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Sun, 9 Feb 2020 17:27:21 +0100 Subject: [PATCH 2/4] :pencil2: Tweak --- source/_integrations/rpi_gpio_pwm.markdown | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/_integrations/rpi_gpio_pwm.markdown b/source/_integrations/rpi_gpio_pwm.markdown index 0926f557dd66..0664b7710ec5 100644 --- a/source/_integrations/rpi_gpio_pwm.markdown +++ b/source/_integrations/rpi_gpio_pwm.markdown @@ -62,7 +62,6 @@ leds: host: description: The remote host address for the GPIO driver. required: false - default: '' type: string {% endconfiguration %} @@ -112,4 +111,4 @@ light: - name: Lightstrip Sideboard driver: gpio host: 192.168.0.66 -``` \ No newline at end of file +``` From d26ecae4c9b1baedafd3b2a15f193df1cc9c5486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20P=C3=B6schl?= Date: Tue, 18 Feb 2020 11:19:54 +0100 Subject: [PATCH 3/4] Applied textlint fixes --- source/_integrations/rpi_gpio_pwm.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/_integrations/rpi_gpio_pwm.markdown b/source/_integrations/rpi_gpio_pwm.markdown index 0664b7710ec5..497245092522 100644 --- a/source/_integrations/rpi_gpio_pwm.markdown +++ b/source/_integrations/rpi_gpio_pwm.markdown @@ -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(same host or remote) 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)). @@ -99,9 +99,9 @@ light: type: rgbw ``` -### RGB LED connected to the GPIO pins of an remote raspberry pi. +### RGB LED connected to the GPIO pins of an remote Raspberry Pi. -On the raspberry pi the pigpio deamon is running on the default port 6666. +On the Raspberry Pi the pigpio deamon is running on the default port 6666. ```yaml # Example configuration.yaml entry From bb5f50604f0d09c652e6c7904d3759da22c6d810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20P=C3=B6schl?= Date: Tue, 18 Feb 2020 11:31:19 +0100 Subject: [PATCH 4/4] Update source/_integrations/rpi_gpio_pwm.markdown Co-Authored-By: springstan <46536646+springstan@users.noreply.github.com> --- source/_integrations/rpi_gpio_pwm.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/rpi_gpio_pwm.markdown b/source/_integrations/rpi_gpio_pwm.markdown index 497245092522..bd0ad3aa1140 100644 --- a/source/_integrations/rpi_gpio_pwm.markdown +++ b/source/_integrations/rpi_gpio_pwm.markdown @@ -101,7 +101,7 @@ light: ### RGB LED connected to the GPIO pins of an remote Raspberry Pi. -On the Raspberry Pi the pigpio deamon is running on the default port 6666. +On the Raspberry Pi the pigpio daemon is running on the default port 6666. ```yaml # Example configuration.yaml entry