mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Tests added for aj_sr04m
This commit is contained in:
parent
8a6921800b
commit
04ff9ab7af
6 changed files with 84 additions and 0 deletions
14
tests/components/aj_sr04m/test.esp32-c3-idf.yaml
Normal file
14
tests/components/aj_sr04m/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
uart:
|
||||
- id: aj_sr04m_uart
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: aj_sr04m
|
||||
id: aj_sr04m_sensor
|
||||
name: "aj_sr04m Distance"
|
||||
uart_id: aj_sr04m_uart
|
||||
update_interval: 2s
|
14
tests/components/aj_sr04m/test.esp32-c3.yaml
Normal file
14
tests/components/aj_sr04m/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
uart:
|
||||
- id: aj_sr04m_uart
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: aj_sr04m
|
||||
id: aj_sr04m_sensor
|
||||
name: "aj_sr04m Distance"
|
||||
uart_id: aj_sr04m_uart
|
||||
update_interval: 2s
|
14
tests/components/aj_sr04m/test.esp32-idf.yaml
Normal file
14
tests/components/aj_sr04m/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
uart:
|
||||
- id: aj_sr04m_uart
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: aj_sr04m
|
||||
id: aj_sr04m_sensor
|
||||
name: "aj_sr04m Distance"
|
||||
uart_id: aj_sr04m_uart
|
||||
update_interval: 2s
|
14
tests/components/aj_sr04m/test.esp32.yaml
Normal file
14
tests/components/aj_sr04m/test.esp32.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
uart:
|
||||
- id: aj_sr04m_uart
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: aj_sr04m
|
||||
id: aj_sr04m_sensor
|
||||
name: "aj_sr04m Distance"
|
||||
uart_id: aj_sr04m_uart
|
||||
update_interval: 2s
|
14
tests/components/aj_sr04m/test.esp8266.yaml
Normal file
14
tests/components/aj_sr04m/test.esp8266.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
uart:
|
||||
- id: aj_sr04m_uart
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: aj_sr04m
|
||||
id: aj_sr04m_sensor
|
||||
name: "aj_sr04m Distance"
|
||||
uart_id: aj_sr04m_uart
|
||||
update_interval: 2s
|
14
tests/components/aj_sr04m/test.rp2040.yaml
Normal file
14
tests/components/aj_sr04m/test.rp2040.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
uart:
|
||||
- id: aj_sr04m_uart
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: aj_sr04m
|
||||
id: aj_sr04m_sensor
|
||||
name: "aj_sr04m Distance"
|
||||
uart_id: aj_sr04m_uart
|
||||
update_interval: 2s
|
Loading…
Reference in a new issue