Skip to content

Commit d5bccb6

Browse files
gwhiteCLemlove
authored andcommitted
added invert_state optional parameter (home-assistant#3086)
* added invert_state optional parameter * added documentation for relay_invert * changed state_invert to invert_state and relay_invert to invert_relay
1 parent ea12573 commit d5bccb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/_components/cover.rpi_gpio.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ cover:
3636
Configuration variables:
3737
3838
- **relay_time** (*Optional*): The time that the relay will be on for in seconds. Default is 0.2 seconds.
39+
- **invert_relay** (*Optional*): Invert the relay pin output so that it is active-high. Default is False (active-low).
3940
- **state_pull_mode** (*Optional*): The direction the State pin is pulling. It can be UP or DOWN. Default is UP.
41+
- **invert_state** (*Optional*): Invert the value of the State pin so that 0 means closed. Default is False.
4042
- **covers** array (*Required*): List of your doors.
4143
- **relay_pin** (*Required*): The pin of your Raspberry Pi where the relay is connected.
4244
- **state_pin** (*Required*): The pin of your Raspberry Pi to retrieve the state.
@@ -49,7 +51,9 @@ Full example:
4951
cover:
5052
- platform: rpi_gpio
5153
relay_time: 0.2
54+
invert_relay: False
5255
state_pull_mode: 'UP'
56+
invert_state: True
5357
covers:
5458
- relay_pin: 10
5559
state_pin: 11

0 commit comments

Comments
 (0)