mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
added invert_state optional parameter (#3086)
* added invert_state optional parameter * added documentation for relay_invert * changed state_invert to invert_state and relay_invert to invert_relay
This commit is contained in:
parent
ea1257309f
commit
d5bccb6d35
@ -36,7 +36,9 @@ cover:
|
||||
Configuration variables:
|
||||
|
||||
- **relay_time** (*Optional*): The time that the relay will be on for in seconds. Default is 0.2 seconds.
|
||||
- **invert_relay** (*Optional*): Invert the relay pin output so that it is active-high. Default is False (active-low).
|
||||
- **state_pull_mode** (*Optional*): The direction the State pin is pulling. It can be UP or DOWN. Default is UP.
|
||||
- **invert_state** (*Optional*): Invert the value of the State pin so that 0 means closed. Default is False.
|
||||
- **covers** array (*Required*): List of your doors.
|
||||
- **relay_pin** (*Required*): The pin of your Raspberry Pi where the relay is connected.
|
||||
- **state_pin** (*Required*): The pin of your Raspberry Pi to retrieve the state.
|
||||
@ -49,7 +51,9 @@ Full example:
|
||||
cover:
|
||||
- platform: rpi_gpio
|
||||
relay_time: 0.2
|
||||
invert_relay: False
|
||||
state_pull_mode: 'UP'
|
||||
invert_state: True
|
||||
covers:
|
||||
- relay_pin: 10
|
||||
state_pin: 11
|
||||
|
Loading…
x
Reference in New Issue
Block a user