mirror of
https://github.com/esphome/esphome.git
synced 2024-12-30 17:31:43 +01:00
15 lines
306 B
YAML
15 lines
306 B
YAML
espnow:
|
|
auto_add_peer: true
|
|
peers:
|
|
- FF:FF:FF:FF:FF:FF
|
|
on_receive:
|
|
- logger.log:
|
|
format: "Received: %s RSSI: %d"
|
|
args: [packet.get_payload(), packet.rssi]
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
pin: GPIO39
|
|
name: Button
|
|
on_click:
|
|
- espnow.send: "hallo everyone"
|