diff --git a/.gitignore b/.gitignore index 8f0acd0b60..4fc0a28a1c 100644 --- a/.gitignore +++ b/.gitignore @@ -139,5 +139,3 @@ sdkconfig.* /components /managed_components - -esphome/components/espnow/test.yaml diff --git a/esphome/components/espnow/.gitignore b/esphome/components/espnow/.gitignore deleted file mode 100644 index d8b4157aef..0000000000 --- a/esphome/components/espnow/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -# Gitignore settings for ESPHome -# This is an example and may include too much for your use-case. -# You can modify this file to suit your needs. -/.esphome/ -/secrets.yaml diff --git a/esphome/components/espnow/test.yaml b/esphome/components/espnow/test.yaml new file mode 100644 index 0000000000..b04fc016ff --- /dev/null +++ b/esphome/components/espnow/test.yaml @@ -0,0 +1,29 @@ +esphome: + name: espnow-test + friendly_name: espnow test + name_add_mac_suffix: true + project: + name: LumenSoft.espnow_test + version: "0.25" + +esp32: + board: m5stack-atom + framework: + type: esp-idf + version: 4.4.8 + +espnow: + auto_add_peer: true + peers: + - FF:FF:FF:FF:FF:FF + on_receive: + - 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"