mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 07:50:21 +00:00
[espnow] Use register_apply_action for peer.add, peer.delete and set_channel (#19538)
This commit is contained in:
@@ -38,8 +38,15 @@ espnow:
|
||||
data: !lambda 'return {0x01, 0x02, 0x03, 0x04, 0x05};'
|
||||
- espnow.peer.add:
|
||||
address: 11:22:33:44:55:66
|
||||
- espnow.peer.add:
|
||||
address: !lambda 'return {0x11, 0x22, 0x33, 0x44, 0x55, 0x66};'
|
||||
- espnow.peer.delete:
|
||||
address: 11:22:33:44:55:66
|
||||
- espnow.peer.delete:
|
||||
address: !lambda 'return {0x11, 0x22, 0x33, 0x44, 0x55, 0x66};'
|
||||
- espnow.set_channel: 6
|
||||
- espnow.set_channel:
|
||||
channel: !lambda 'return 6;'
|
||||
on_broadcast:
|
||||
- logger.log:
|
||||
format: "Broadcast from: %s = '%s' RSSI: %d"
|
||||
|
||||
Reference in New Issue
Block a user