Files
esphome/tests/integration/fixtures/socket_wake_gate_tcp.yaml
2026-06-18 13:54:29 +12:00

28 lines
656 B
YAML

esphome:
name: socket-wake-gate-tcp
on_boot:
priority: -100
then:
- lambda: |-
// Raise loop_interval_ to 2000ms. Without wake_request_set() being
// called when select() returns due to socket data, the component
// phase would be gated for up to 2000ms after a TCP request arrives.
App.set_loop_interval(2000);
# Let boot transients and API handshake settle.
- delay: 500ms
- lambda: |-
ESP_LOGI("test", "BOOT_DONE");
host:
api:
actions:
- action: ping
then:
- logger.log:
format: "PONG"
level: INFO
logger:
level: INFO