Update automations.rst (#1992)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
phpia 2022-04-14 05:57:29 +02:00 committed by GitHub
parent e051ae919c
commit ccf1966fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: