mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 07:58:09 +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