mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 18:54:14 +01:00
27 lines
687 B
YAML
27 lines
687 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("main", (prefix + " Hello World!" + to_string(param2) + " " + to_string(param3)).c_str());'
|