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
Copy file name to clipboardExpand all lines: source/_components/switch.rpi_gpio.markdown
+11
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ 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.
35
36
36
37
For more details about the GPIO layout, visit the Wikipedia [article](https://en.wikipedia.org/wiki/Raspberry_Pi#GPIO_connector) about the Raspberry Pi.
37
38
@@ -46,4 +47,14 @@ switch:
46
47
17: Speaker Relay
47
48
```
48
49
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