Support of hardware UART

Hi,

Does anyone know whether ESPHome support hardware UART? I tried custom UART component using the sample codes in Custom UART Device — ESPHome. Once I changed the TX and RX pins from D0 and D1 to D8 and D7 (UART2) like this:
uart:
id: uart_bus
tx_pin: D8
rx_pin: D7
baud_rate: 9600

I soon get the WiFI connection error in the log:
INFO Reading configuration /config/esphome/esp-d1-mini-01.yaml…
INFO Starting log output from esp-d1-mini-01.local using esphome API
INFO Connecting to esp-d1-mini-01.local:6053 (192.168.1.192)
WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error connecting to 192.168.1.192: [Errno 111] Connection refused). Re-Trying in 1 seconds
INFO Connecting to esp-d1-mini-01.local:6053 (192.168.1.192)
WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error connecting to 192.168.1.192: [Errno 111] Connection refused). Re-Trying in 1 seconds
INFO Connecting to esp-d1-mini-01.local:6053 (192.168.1.192)
WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error connecting to 192.168.1.192: [Errno 111] Connection refused). Re-Trying in 2 seconds

Appreciate your advise.

Thanks in advance.

Screenshot 2021-07-02 at 00-56-41 UART Bus

https://esphome.io/components/uart.html

Screenshot 2021-07-02 at 00-58-11 UART Bus

https://esphome.io/components/uart.html#hardware-uarts

1 Like

oh yeah: docs.