mirror of
https://github.com/esphome/esphome.git
synced 2024-12-27 07:51:43 +01:00
update test script
This commit is contained in:
parent
f5ef38b948
commit
dfb913e8bc
1 changed files with 5 additions and 12 deletions
|
@ -37,17 +37,10 @@ espnow:
|
|||
- FF:FF:FF:FF:FF:FF
|
||||
on_receive:
|
||||
- logger.log:
|
||||
format: "Received: %s RSSI: %d"
|
||||
args: [packet.payload_as_bytes(), packet.rssi]
|
||||
format: "Received: %s RSSI: %d"
|
||||
args: [packet.payload_as_bytes(), packet.rssi]
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: GPIO00
|
||||
inverted: true
|
||||
mode:
|
||||
input: true
|
||||
pullup: true
|
||||
name: Button
|
||||
on_click:
|
||||
interval:
|
||||
- interval: 1min
|
||||
then:
|
||||
- espnow.send: "hallo everyone"
|
||||
|
|
Loading…
Reference in a new issue