From 586bb6a7ca8b39c94a7803b3c17e4f76b2c2786b Mon Sep 17 00:00:00 2001 From: Arksine Date: Fri, 25 Dec 2020 19:31:57 -0500 Subject: [PATCH] docs: document "initial_state" option for the power plugin Signed-off-by: Eric Callahan --- docs/configuration.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index e1bde43..9dcf101 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -160,6 +160,10 @@ pin: gpiochip0/gpio26 # !gpiochip0/gpio26 # !gpio26 # This parameter must be provided for "gpio" type devices +initial_state: off +# The initial state for GPIO type devices. May be on or +# off. When moonraker starts the device will be set to this +# state. Default is off. address: port: # The above options are used for "tplink_smartplug" devices. The @@ -186,10 +190,17 @@ Below are some potential examples: [power printer] type: gpio pin: gpio26 +initial_state: off [power printer_led] type: gpio pin: !gpiochip0/gpio16 +initial_state: off + +[power light_strip] +type: gpio +pin: gpiochip0/gpio17 +initial_state: on [power wifi_switch] type: tplink_smartplug