mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-10-01 04:48:05 +02:00
Add light restore mode
This commit is contained in:
parent
6a18008e89
commit
3f7065d722
@ -32,6 +32,14 @@ Configuration variables:
|
|||||||
Defaults to ``2.8``.
|
Defaults to ``2.8``.
|
||||||
- **default_transition_length** (*Optional*, :ref:`config-time`): The default transition length
|
- **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``.
|
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 </components/esphome>`.
|
||||||
|
|
||||||
|
- ``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:
|
Additional Configuration variables for addressable lights:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user