ESP32 problem with two UART for two times SML

Hello,

I builded up a board which should capture data from two smart meters over two separate UART interfaces. Data from smart meters is read out with two “Hichi TTL - IR Lesekopf”.

Problem is, that I only get data from one smart meter. It looks like it is only possible to use one UART.

I’ve cross-changed everything, so in general it should not be a hardware problem. I always only get data from smart meter that is connected to “uart_01”. Where is my mistake in following (reduced) configuration?

uart:
  - id: uart_01
    rx_pin: 17
    baud_rate: 9600
    data_bits: 8
    parity: NONE
    stop_bits: 1
  
  - id: uart_02
    rx_pin: 25
    baud_rate: 9600
    data_bits: 8
    parity: NONE
    stop_bits: 1
        
sml:
  - id: sml_01
    uart_id: uart_01
    
  - id: sml_02
    uart_id: uart_02

sensor:
# ----------- SML Z1 -----------
  - platform: sml
    name: "Z1 Gesamtbezug"
    sml_id: sml_01
    #server_id: "0123456789abcdef"
    obis_code: "1-0:1.8.0"
    unit_of_measurement: kWh
    accuracy_decimals: 1
    state_class: total_increasing
    device_class: energy
    filters:
      - multiply: 0.0001

  - platform: sml
    name: "Z1 Leistung"
    sml_id: sml_01
    #server_id: "0123456789abcdef"
    obis_code: "1-0:16.7.0"
    unit_of_measurement: W
    accuracy_decimals: 0
    state_class: measurement
    device_class: power
    
# ----------- SML Z2 -----------
  - platform: sml
    name: "Z2 Gesamtbezug"
    sml_id: sml_02
    #server_id: "0123456789abcdef"
    obis_code: "1-0:1.8.0"
    unit_of_measurement: kWh
    accuracy_decimals: 1
    state_class: total_increasing
    device_class: energy
    filters:
      - multiply: 0.0001   
      
  - platform: sml
    name: "Z2 Leistung"
    sml_id: sml_02
    #server_id: "0123456789abcdef"
    obis_code: "1-0:16.7.0"
    unit_of_measurement: W
    accuracy_decimals: 0
    state_class: measurement
    device_class: power

With this configuration I only get data from “Z1”, (first meter). If I change rx pins (uart_01 - pin 25, uart_02 - pin 17) I get data from “Z2” (second meter).

Thank you

After some deeper investigation I property found problem. I also want to get data out of heating system via VitoWifi that also use one serial / uart interface. After changing assignment in VitoWiFi.setup (not pins) it seems like it is working. I get data from both meters. As hardware interface of heating system is not ready yet I don’t know if it also working.