From 0b648aef1a6aaa00fb465d9df265efd1b7b0b302 Mon Sep 17 00:00:00 2001 From: limengdu <37475446+limengdu@users.noreply.github.com> Date: Fri, 11 Oct 2024 10:32:05 +0800 Subject: [PATCH] Add: mr60fda2 test --- tests/components/seeed_mr60fda2/common.yaml | 37 +++++++++++++++++++ .../seeed_mr60fda2/test.esp32-c3-ard.yaml | 5 +++ .../seeed_mr60fda2/test.esp32-c3-idf.yaml | 5 +++ 3 files changed, 47 insertions(+) create mode 100644 tests/components/seeed_mr60fda2/common.yaml create mode 100644 tests/components/seeed_mr60fda2/test.esp32-c3-ard.yaml create mode 100644 tests/components/seeed_mr60fda2/test.esp32-c3-idf.yaml diff --git a/tests/components/seeed_mr60fda2/common.yaml b/tests/components/seeed_mr60fda2/common.yaml new file mode 100644 index 0000000000..cb46052e3d --- /dev/null +++ b/tests/components/seeed_mr60fda2/common.yaml @@ -0,0 +1,37 @@ +uart: + - id: seeed_mr60fda2_uart + tx_pin: ${uart_tx_pin} + rx_pin: ${uart_rx_pin} + baud_rate: 115200 + parity: NONE + stop_bits: 1 + +seeed_mr60fda2: + id: my_seeed_mr60fda2 + uart_id: seeed_mr60fda2_uart + +text_sensor: + - platform: seeed_mr60fda2 + is_fall: + name: "Falling Information" + +binary_sensor: + - platform: seeed_mr60fda2 + people_exist: + name: "Person Information" + +button: + - platform: seeed_mr60fda2 + get_radar_parameters: + name: "Get Radar Parameters" + reset_radar: + name: "Reset" + +select: + - platform: seeed_mr60fda2 + install_height: + name: "Set Install Height" + height_threshold: + name: "Set Height Threshold" + sensitivity: + name: "Set Sensitivity" diff --git a/tests/components/seeed_mr60fda2/test.esp32-c3-ard.yaml b/tests/components/seeed_mr60fda2/test.esp32-c3-ard.yaml new file mode 100644 index 0000000000..4fb884abf4 --- /dev/null +++ b/tests/components/seeed_mr60fda2/test.esp32-c3-ard.yaml @@ -0,0 +1,5 @@ +substitutions: + uart_tx_pin: GPIO5 + uart_rx_pin: GPIO4 + +<<: !include common.yaml diff --git a/tests/components/seeed_mr60fda2/test.esp32-c3-idf.yaml b/tests/components/seeed_mr60fda2/test.esp32-c3-idf.yaml new file mode 100644 index 0000000000..4fb884abf4 --- /dev/null +++ b/tests/components/seeed_mr60fda2/test.esp32-c3-idf.yaml @@ -0,0 +1,5 @@ +substitutions: + uart_tx_pin: GPIO5 + uart_rx_pin: GPIO4 + +<<: !include common.yaml