From 3f7065d722dee702d994663a788f95685898226d Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Mon, 27 May 2019 19:22:49 +0200 Subject: [PATCH] Add light restore mode --- components/light/index.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/light/index.rst b/components/light/index.rst index 63498aa0c..ac29d31b1 100644 --- a/components/light/index.rst +++ b/components/light/index.rst @@ -32,6 +32,14 @@ Configuration variables: Defaults to ``2.8``. - **default_transition_length** (*Optional*, :ref:`config-time`): The default transition length to use when no transition length is set in the light call. Defaults to ``1s``. +- **restore_mode** (*Optional*): Control how the GPIO Switch attempts to restore state on bootup. + For restoring on ESP8266s, also see ``esp8266_restore_from_flash`` in the + :doc:`esphome section `. + + - ``RESTORE_DEFAULT_OFF`` (Default) - Attempt to restore state and default to OFF if not possible to restore. + - ``RESTORE_DEFAULT_ON`` - Attempt to restore state and default to ON. + - ``ALWAYS_OFF`` - Always initialize the light as OFF on bootup. + - ``ALWAYS_ON`` - Always initialize the light as ON on bootup. Additional Configuration variables for addressable lights: