diff --git a/tests/components/espnow/common.yaml b/tests/components/espnow/common.yaml new file mode 100644 index 0000000000..fcd14d8d35 --- /dev/null +++ b/tests/components/espnow/common.yaml @@ -0,0 +1,15 @@ +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" diff --git a/tests/components/espnow/test.esp32-ard.yaml b/tests/components/espnow/test.esp32-ard.yaml new file mode 100644 index 0000000000..dade44d145 --- /dev/null +++ b/tests/components/espnow/test.esp32-ard.yaml @@ -0,0 +1 @@ +<<: !include common.yaml diff --git a/tests/components/espnow/test.esp32-idf.yaml b/tests/components/espnow/test.esp32-idf.yaml new file mode 100644 index 0000000000..dade44d145 --- /dev/null +++ b/tests/components/espnow/test.esp32-idf.yaml @@ -0,0 +1 @@ +<<: !include common.yaml