mirror of
https://github.com/esphome/esphome.git
synced 2024-12-18 19:44:53 +01:00
16 lines
311 B
YAML
16 lines
311 B
YAML
|
espnow:
|
||
|
auto_add_peer: true
|
||
|
peers:
|
||
|
- FF:FF:FF:FF:FF:FF
|
||
|
on_package_received:
|
||
|
- logger.log:
|
||
|
format: "Received: %s RSSI: %d"
|
||
|
args: [it->data().data(), it->rssi()]
|
||
|
|
||
|
binary_sensor:
|
||
|
- platform: gpio
|
||
|
pin: GPIO39
|
||
|
name: Button
|
||
|
on_click:
|
||
|
- espnow.send: "hallo everyone"
|