mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-04-04 18:27:02 +02:00
Update automations.rst (#1992)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
e051ae919c
commit
ccf1966fe6
@ -270,6 +270,11 @@ global variables can be used to store the state of a garage door.
|
||||
type: int
|
||||
restore_value: no
|
||||
initial_value: '0'
|
||||
# Example for global string variable
|
||||
- id: my_global_string
|
||||
type: std::string
|
||||
restore_value: no # Strings cannot be saved/restored
|
||||
initial_value: '"hello world"'
|
||||
|
||||
# In an automation
|
||||
on_press:
|
||||
|
Loading…
Reference in New Issue
Block a user