mirror of
https://github.com/esphome/esphome.git
synced 2026-10-21 21:36:14 +00:00
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: J. Nick Koston <nick@home-assistant.io> Co-authored-by: J. Nick Koston <nick@koston.org>
28 lines
518 B
YAML
28 lines
518 B
YAML
esphome:
|
|
name: socket-wake-gate-udp
|
|
on_boot:
|
|
priority: -100
|
|
then:
|
|
- lambda: |-
|
|
// Without a loop-monitored socket a datagram waits for loop_interval_ to expire.
|
|
App.set_loop_interval(2000);
|
|
- delay: 500ms
|
|
- lambda: |-
|
|
ESP_LOGI("test", "BOOT_DONE");
|
|
|
|
host:
|
|
|
|
api:
|
|
|
|
logger:
|
|
level: INFO
|
|
|
|
udp:
|
|
- id: test_udp
|
|
port: UDP_LISTEN_PORT_PLACEHOLDER
|
|
addresses: ["127.0.0.1"]
|
|
on_receive:
|
|
- logger.log:
|
|
format: "PONG"
|
|
level: INFO
|