mirror of
https://github.com/esphome/esphome.git
synced 2026-08-22 22:26:21 +00:00
24 lines
465 B
YAML
24 lines
465 B
YAML
esphome:
|
|
name: test
|
|
|
|
esp32:
|
|
board: nodemcu-32s
|
|
|
|
deep_sleep:
|
|
id: deepsleep
|
|
sleep_duration: 1min
|
|
run_duration: 10s
|
|
on_wake:
|
|
- lambda: 'ESP_LOGD("test", "cause %d", static_cast<int>(cause));'
|
|
esp32_ext1_wakeup:
|
|
mode: ANY_HIGH
|
|
pins:
|
|
- pin: GPIO2
|
|
on_wake:
|
|
- lambda: 'ESP_LOGD("test", "left");'
|
|
- pin:
|
|
number: GPIO4
|
|
on_wake:
|
|
- lambda: 'ESP_LOGD("test", "right");'
|
|
- number: GPIO13
|