mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +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:
|
Configuration variables:
|
||||||
|
|
||||||
- **relay_time** (*Optional*): The time that the relay will be on for in seconds. Default is 0.2 seconds.
|
- **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.
|
- **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.
|
- **covers** array (*Required*): List of your doors.
|
||||||
- **relay_pin** (*Required*): The pin of your Raspberry Pi where the relay is connected.
|
- **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.
|
- **state_pin** (*Required*): The pin of your Raspberry Pi to retrieve the state.
|
||||||
@ -49,7 +51,9 @@ Full example:
|
|||||||
cover:
|
cover:
|
||||||
- platform: rpi_gpio
|
- platform: rpi_gpio
|
||||||
relay_time: 0.2
|
relay_time: 0.2
|
||||||
|
invert_relay: False
|
||||||
state_pull_mode: 'UP'
|
state_pull_mode: 'UP'
|
||||||
|
invert_state: True
|
||||||
covers:
|
covers:
|
||||||
- relay_pin: 10
|
- relay_pin: 10
|
||||||
state_pin: 11
|
state_pin: 11
|
||||||
|
Loading…
x
Reference in New Issue
Block a user