[espnow] Use register_apply_action for peer.add, peer.delete and set_channel (#19538)

This commit is contained in:
J. Nick Koston
2026-09-23 16:57:32 -05:00
committed by GitHub
parent 01f9416a79
commit bbd8472b66
4 changed files with 41 additions and 80 deletions
+7
View File
@@ -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"