I want to use two ultrasonic devices (a02yyuw). They work on UART. One works well. During verification, it constantly generates an error. Where is my mistake?
esphome:
name: esphome-web-42c958
friendly_name: ESPHome Web 42c958
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "gbSyzGUByBjwNawfHn/Iwf+UycI7y9+hZ3cL0ARpzFw="
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esphome-Web-42C958"
password: "KsLpqELRTG4f"
captive_portal:
web_server:
port: 80
i2c:
sda: 21
scl: 22
scan: True
id: bus_a
uart:
- id: uart_1
tx_pin: GPIO12 #blue
rx_pin: GPIO13 # green
baud_rate: 9600
- id: uart_2
tx_pin: GPIO17 # blue
rx_pin: GPIO16 # green
baud_rate: 9600
dallas:
- pin: GPIO23
sensor:
- platform: dallas
address: 0x1C0000031EDD2A28
name: "ΡΠ΅ΠΌΠΏΠ΅ΡΠ°ΡΡΡΠ° Π·ΠΎΠ²Π½Ρ"
- platform: "a02yyuw"
name: "Distance_1"
- platform: "a02yyuw"
name: "Distance_2