Closed anisart closed 5 years ago
Just make it a list. Keep in mind that the ESP8266 has two hardware UARTs with some odd restrictions. See this for more info: https://esphome.io/components/logger.html#hardware-uarts
uart:
- tx_pin: 15
rx_pin: 13
baud_rate: 9600
id: uart0_swap
- tx_pin: 2
rx_pin: None
baud_rate: 9600
id: uart1_txonly
@brandond thanks. Seems like it works
uart:
- id: uart_1
tx_pin: GPIO15
rx_pin: GPIO13
baud_rate: 9600
- id: uart_2
rx_pin: GPIO12
baud_rate: 9600
but now I have a problem like in #488 :(
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Hass.io
ESP (ESP32/ESP8266, Board/Sonoff):
ESP8266 Heltec WiFi kit 8
Affected component:
uart
Description of problem: I need to connect two serial devices (mh-z19 and pms7003) to Heltec Wi-Fi kit 8. I tried to connect it to GPIO13 and GPIO15 separately, it works fine. But how to declare second software serial to get working two devices at the same time?
Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried: