mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
7e8ed5c391
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
26 lines
651 B
YAML
26 lines
651 B
YAML
script:
|
|
- id: my_script
|
|
mode: single
|
|
then:
|
|
- lambda: 'ESP_LOGD("main", "Hello World!");'
|
|
- id: my_script_queued
|
|
mode: queued
|
|
max_runs: 2
|
|
then:
|
|
- lambda: 'ESP_LOGD("main", "Hello World!");'
|
|
- id: my_script_parallel
|
|
mode: parallel
|
|
max_runs: 2
|
|
then:
|
|
- lambda: 'ESP_LOGD("main", "Hello World!");'
|
|
- id: my_script_restart
|
|
mode: restart
|
|
then:
|
|
- lambda: 'ESP_LOGD("main", "Hello World!");'
|
|
- id: my_script_with_params
|
|
parameters:
|
|
prefix: string
|
|
param2: int
|
|
param3: bool
|
|
then:
|
|
- lambda: 'ESP_LOGD(prefix.c_str(), "Hello World! %i %i", param2, param3);'
|