SML Smartmeter Problem

Hi,

After switching to another d1 mini
my esp8266 does not connect properly.

When I just insert one or two sensors it is mostly no problem,
but after inserting three of them, it does not matter which one,
I dont get a connection.

The same sourcecode works on the old d1 mini without any problems.


captive_portal:
   
uart:
  id: uart_bus
  rx_pin: GPIO5
  tx_pin: GPIO4
  baud_rate: 9600
  data_bits: 8
  parity: NONE
  stop_bits: 1

sml:
  id: mysml
  uart_id: uart_bus    


sensor:
  - platform: sml
    name: "Momentanleistung"
    sml_id: mysml
    server_id: "  "
    obis_code: "1-0:16.7.0"
    unit_of_measurement: W
    accuracy_decimals: 0
    device_class: power
    state_class: measurement

  - platform: sml
    name: "SummeNetzbezug"
    sml_id: mysml
    server_id: "  "
    obis_code: "1-0:1.8.0"
    unit_of_measurement: kWh
    accuracy_decimals: 1
    device_class: energy
    state_class: total_increasing
    filters:
      - throttle: 0.5s
      - multiply: 0.0001

  - platform: sml
    name: "SummeEinspeisung"
    sml_id: mysml
    server_id: "  "
    obis_code: "1-0:2.8.0"
    unit_of_measurement: kWh
    accuracy_decimals: 1
    device_class: energy
    state_class: total_increasing
    filters:
      - throttle: 0.5s
      - multiply: 0.0001


binary_sensor:
  - platform: status
    name: "Status"


status_led:
  pin:
    number: 2
    inverted: true

any ideas?

Edit: I tried several times with removing some sensors and flashing again - no it works.
But I really need to understand.

at present it is not working - after flashing.

here ist the log:

INFO Starting log output from 10.10.10.251 using esphome API
INFO Successfully connected to smartmeter @ 10.10.10.251 in 7.274s
WARNING smartmeter @ 10.10.10.251: Connection error occurred: smartmeter @ 10.10.10.251: The connection dropped immediately after encrypted hello; Try enabling encryption on the device or turning off encryption on the client (ESPHome Logs 2024.2.1).
WARNING Can't connect to ESPHome API for smartmeter @ 10.10.10.251: Error while finishing connection: Finishing connection cancelled due to fatal exception: smartmeter @ 10.10.10.251: The connection dropped immediately after encrypted hello; Try enabling encryption on the device or turning off encryption on the client (ESPHome Logs 2024.2.1). (HandshakeAPIError)
INFO Trying to connect to smartmeter @ 10.10.10.251 in the background
WARNING smartmeter @ 10.10.10.251: Connection error occurred: smartmeter @ 10.10.10.251: Connection lost
INFO Successfully connected to smartmeter @ 10.10.10.251 in 0.095s
WARNING smartmeter @ 10.10.10.251: Connection error occurred: smartmeter @ 10.10.10.251: The connection dropped immediately after encrypted hello; Try enabling encryption on the device or turning off encryption on the client (ESPHome Logs 2024.2.1).