From d5bccb6d356e6d97e6f2eddb7d6a8642e70750e0 Mon Sep 17 00:00:00 2001 From: gwhiteCL Date: Mon, 31 Jul 2017 18:24:37 -0600 Subject: [PATCH] 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 --- source/_components/cover.rpi_gpio.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_components/cover.rpi_gpio.markdown b/source/_components/cover.rpi_gpio.markdown index 7b0fd775aca..581c6f36989 100644 --- a/source/_components/cover.rpi_gpio.markdown +++ b/source/_components/cover.rpi_gpio.markdown @@ -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