You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Revert "add documentation for "shared_gpio" flag to component switch.rpi_gpio"
This reverts commit f2dba1f.
* clearify that rpi_gpio pins are exclusive to HASS-ussage when assigned
Copy file name to clipboardExpand all lines: source/_components/switch.rpi_gpio.markdown
+4-11Lines changed: 4 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -32,10 +32,13 @@ Configuration variables:
32
32
- **ports** array (*Required*): Array of used ports.
33
33
- **port: name** (*Required*): Port numbers and corresponding names (GPIO #).
34
34
- **invert_logic** (*Optional*): If true, inverts the output logic to ACTIVE LOW. Default is false (ACTIVE HIGH).
35
-
- **shared_gpio** (*Optional*): If true, forces a GPIO.setup() before each write. Default is false.
36
35
37
36
For more details about the GPIO layout, visit the Wikipedia [article](https://en.wikipedia.org/wiki/Raspberry_Pi#GPIO_connector) about the Raspberry Pi.
38
37
38
+
<p class='note warning'>
39
+
Note that a pin managed by HASS is expected to be exclusive to HASS.
40
+
</p>
41
+
39
42
A common question is what does Port refer to, this number is the actual GPIO # not the pin #.
40
43
For example, if you have a relay connected to pin 11 its GPIO # is 17.
41
44
@@ -47,14 +50,4 @@ switch:
47
50
17: Speaker Relay
48
51
```
49
52
50
-
In case you have any other python scripts running that use RPi.GPIO no values will be written after the initial HASS-start.
51
-
Setting **shared_gpio** to true will reinit the pin before each write, working around this issue.
0 commit comments