mirror of
https://github.com/esphome/esphome.git
synced 2024-12-02 19:54:14 +01:00
15 lines
241 B
YAML
15 lines
241 B
YAML
|
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
|