From 653b4bae0330ce4b1404d6c033ead898faa25261 Mon Sep 17 00:00:00 2001 From: Tabakhase Date: Tue, 13 Feb 2018 19:40:34 +0100 Subject: [PATCH] clearify rpi_gpio sharing + revert #4608 (#4660) * Revert "add documentation for "shared_gpio" flag to component switch.rpi_gpio" This reverts commit f2dba1f614af51f84eadbdeab5ca2f566f334ad6. * clearify that rpi_gpio pins are exclusive to HASS-ussage when assigned --- source/_components/switch.rpi_gpio.markdown | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/source/_components/switch.rpi_gpio.markdown b/source/_components/switch.rpi_gpio.markdown index ad4079a433d..9f50d12987f 100644 --- a/source/_components/switch.rpi_gpio.markdown +++ b/source/_components/switch.rpi_gpio.markdown @@ -32,10 +32,13 @@ Configuration variables: - **ports** array (*Required*): Array of used ports. - **port: name** (*Required*): Port numbers and corresponding names (GPIO #). - **invert_logic** (*Optional*): If true, inverts the output logic to ACTIVE LOW. Default is false (ACTIVE HIGH). -- **shared_gpio** (*Optional*): If true, forces a GPIO.setup() before each write. Default is false. For more details about the GPIO layout, visit the Wikipedia [article](https://en.wikipedia.org/wiki/Raspberry_Pi#GPIO_connector) about the Raspberry Pi. +

+Note that a pin managed by HASS is expected to be exclusive to HASS. +

+ A common question is what does Port refer to, this number is the actual GPIO # not the pin #. For example, if you have a relay connected to pin 11 its GPIO # is 17. @@ -47,14 +50,4 @@ switch: 17: Speaker Relay ``` -In case you have any other python scripts running that use RPi.GPIO no values will be written after the initial HASS-start. -Setting **shared_gpio** to true will reinit the pin before each write, working around this issue. -```yaml -# Example configuration.yaml entry -switch: - - platform: rpi_gpio - shared_gpio: true - ports: - 19: LED-Red -```