mirror of
https://github.com/esphome/esphome.git
synced 2026-10-22 05:46:12 +00:00
The session layer sends keep-alives and reports whether the peer can be reached, including after it restarts or a reliability layer below loses data. The encryption layer encrypts and checks each packet with XXTEA, with an optional rolling code against replays. Components that a layer needs, such as binary_sensor, are loaded only when it is configured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
942 B
YAML
46 lines
942 B
YAML
wifi:
|
|
ssid: MySSID
|
|
password: password1
|
|
|
|
udp:
|
|
- id: packet_interface_udp
|
|
|
|
packet_interface:
|
|
- platform: uart
|
|
id: packet_interface_uart
|
|
max_packet_size: 256
|
|
reliability:
|
|
timeout: 300ms
|
|
ack_delay: 50ms
|
|
max_queue_length: 3
|
|
max_retries: 4
|
|
encryption:
|
|
key: Johnny Cash
|
|
rolling_code_enable: true
|
|
session:
|
|
keep_alive: 5s
|
|
timeout: 12s
|
|
binary_sensor:
|
|
name: UART session
|
|
- platform: udp
|
|
id: packet_interface_network
|
|
udp_id: packet_interface_udp
|
|
encryption: Johnny Cash
|
|
reliability:
|
|
session:
|
|
|
|
sensor:
|
|
- platform: template
|
|
id: packet_interface_sensor
|
|
lambda: return 1.0;
|
|
|
|
packet_transport:
|
|
- platform: packet_interface
|
|
packet_interface: packet_interface_uart
|
|
sensors:
|
|
- packet_interface_sensor
|
|
- platform: packet_interface
|
|
packet_interface: packet_interface_network
|
|
sensors:
|
|
- packet_interface_sensor
|