You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/components/packet_transport/espnow.md
+23-16Lines changed: 23 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,17 @@ params:
9
9
10
10
{{< anchor "espnow-packet-transport" >}}
11
11
12
-
The [Packet Transport Component](#packet-transport) platform allows ESPHome nodes to directly communicate with each over a communication channel. The ESP-NOW implementation of the platform uses ESP-NOW as a communication medium. See the [Packet Transport Component](#packet-transport) and {{< docref "/components/espnow" >}} for more information.
12
+
The [Packet Transport Component](#packet-transport) platform allows ESPHome nodes to directly communicate with each
13
+
over a communication channel. The ESP-NOW implementation of the platform uses ESP-NOW as a communication medium.
14
+
See the [Packet Transport Component](#packet-transport) and {{< docref "/components/espnow" >}} for more information.
13
15
14
-
ESP-NOW provides low-latency, low-power wireless communication between ESP32 devices without requiring a Wi-Fi connection. This makes it ideal for battery-powered sensors or applications where Wi-Fi overhead would impact performance.
16
+
ESP-NOW provides low-latency, low-power wireless communication between ESP32 devices without requiring a Wi-Fi
17
+
connection. This makes it ideal for battery-powered sensors or applications where Wi-Fi overhead would impact
18
+
performance.
15
19
16
20
> **Note:**
17
-
> ESP-NOW communication occurs independently of Wi-Fi. Devices can communicate via ESP-NOW even when Wi-Fi is disabled, making it suitable for power-sensitive applications.
21
+
> ESP-NOW communication occurs independently of Wi-Fi. Devices can communicate via ESP-NOW even when Wi-Fi is
22
+
> disabled, making it suitable for power-sensitive applications.
18
23
19
24
## Example Configuration
20
25
@@ -44,7 +49,7 @@ sensor:
44
49
- **espnow_id** (**Required**, [ID](#config-id)): The esp-now ID to use for transport.
45
50
- **peer_address** (*Optional*, MAC Address): MAC address to send packets to. This can be either a specific
46
51
peer address for point-to-point communication, or the broadcast address. Default FF:FF:FF:FF:FF:FF
47
-
- All other options from the [Packet Transport Component](#packet-transport)
52
+
- All other options from the [Packet Transport Component](/components/packet_transport)
48
53
49
54
> **Note:**
50
55
> Peers must be registered with the {{< docref "/components/espnow" >}} component before
@@ -64,10 +69,12 @@ packet_transport:
64
69
- sensor_id
65
70
```
66
71
67
-
All devices with the broadcast address (`FF:FF:FF:FF:FF:FF`) registered as a peer will receive the packets. This is useful for hub-and-spoke topologies where multiple devices monitor a single sensor source.
72
+
All devices with the broadcast address (`FF:FF:FF:FF:FF:FF`) registered as a peer will receive the packets.
73
+
This is useful for hub-and-spoke topologies where multiple devices monitor a single sensor source.
68
74
69
75
> **Warning:**
70
-
> Using broadcast mode increases ESP-NOW traffic on the radio channel, which may impact performance of other ESP-NOW devices in range. Use specific peer addresses whenever possible to minimize interference.
76
+
> Using broadcast mode increases ESP-NOW traffic on the radio channel, which may impact performance of other
77
+
> ESP-NOW devices in range. Use specific peer addresses whenever possible to minimize interference.
71
78
72
79
### Unicast Mode
73
80
@@ -79,7 +86,8 @@ packet_transport:
79
86
- sensor_id
80
87
```
81
88
82
-
Only the specified peer receives the packets. This is more efficient for point-to-point communication and reduces radio channel congestion for neighboring ESP-NOW devices.
89
+
Only the specified peer receives the packets. This is more efficient for point-to-point communication and reduces
90
+
radio channel congestion for neighboring ESP-NOW devices.
83
91
84
92
## Simple Example
85
93
@@ -90,11 +98,11 @@ This example shows two devices exchanging sensor data over ESP-NOW with encrypti
90
98
```yaml
91
99
espnow:
92
100
peers:
93
-
- mac_address: "AA:BB:CC:DD:EE:01" # Device 2
101
+
- "AA:BB:CC:DD:EE:01" # Consumer mac address
94
102
95
103
packet_transport:
96
104
- platform: espnow
97
-
peer_address: "AA:BB:CC:DD:EE:01" # Send to Device 2
105
+
peer_address: "AA:BB:CC:DD:EE:01" # Consumer mac address
98
106
encryption: "MySecretKey123"
99
107
sensors:
100
108
- outdoor_temp
@@ -111,13 +119,13 @@ sensor:
111
119
```yaml
112
120
espnow:
113
121
peers:
114
-
- mac_address: "AA:BB:CC:DD:EE:00" # Device 1
122
+
- "AA:BB:CC:DD:EE:00" # Provider mac address
115
123
116
124
packet_transport:
117
125
- platform: espnow
118
126
encryption: "MySecretKey123"
119
127
providers:
120
-
- name: temp-sensor
128
+
- name: temp-sensor # Provider device name
121
129
122
130
sensor:
123
131
- platform: packet_transport
@@ -136,7 +144,9 @@ This example shows a central hub receiving sensor data from multiple remote devi
136
144
```yaml
137
145
espnow:
138
146
peers:
139
-
- mac_address: "FF:FF:FF:FF:FF:FF"
147
+
- "AA:BB:CC:DD:EE:01" # room-sensor-1 mac address
148
+
- "AA:BB:CC:DD:EE:02" # room-sensor-2 mac address
149
+
- "AA:BB:CC:DD:EE:03" # outdoor-sensor mac address
140
150
141
151
packet_transport:
142
152
- platform: espnow
@@ -167,12 +177,9 @@ sensor:
167
177
168
178
```yaml
169
179
espnow:
170
-
peers:
171
-
- mac_address: "FF:FF:FF:FF:FF:FF"
172
180
173
181
packet_transport:
174
182
- platform: espnow
175
-
peer_address: "FF:FF:FF:FF:FF:FF"
176
183
encryption: "HubSecret123"
177
184
sensors:
178
185
- temperature
@@ -185,7 +192,7 @@ sensor:
185
192
186
193
## See Also
187
194
188
-
- [Packet Transport Component](#packet-transport)
195
+
- [Packet Transport Component](/components/packet_transport)
0 commit comments