My ESP32 don't decode SML

Hi
I spend last 3 days to figure it out and I am out of ideas.
My HA is a docker installation also ESPHome.
I build LSM Sensor wit ESP32 and IR Sensor
With:

docker run --rm -v "${PWD}":/config -it ghcr.io/esphome/esphome wizard sz.yaml

I created my yaml file:


esphome:
   name: stromzaehler
 
 esp32:
   board: esp32dev
   framework:
     type: arduino
 
 # Enable logging
 logger:
   level: VERY_VERBOSE
 
 # Enable Home Assistant API
 api:
   password: ""
 
 ota:
   password: ""
 
 wifi:
   ssid: "########"
   password: "#######"
 
   # Enable fallback hotspot (captive portal) in case wifi connection fails
   ap:
     ssid: "Stromzaehler Fallback Hotspot"
     password: "#########"
 
 captive_portal:
 
 web_server:
   version: 1
 
 uart:
   rx_pin: GPIO27
   baud_rate: 9600
   debug:
 
 sml:
   id: mysml
 
 sensor:
   - platform: sml
     name: "Total energy"
     sml_id: mysml
     obis_code: "1-0:1.8.0"
     unit_of_measurement: kWh
     accuracy_decimals: 3
     device_class: energy
     state_class: total_increasing
     filters:
       - multiply: 0.0001

and flashed my ESP32:

docker run --rm --privileged -v "${PWD}":/config --device=/dev/ttyUSB0 -it ghcr.io/esphome/esphome run sz.yaml

HA recognized ESPHome I saw my "Total energy"Sonsor, everything looked fine, except for the fact that the sensor either does not receive data or does not understand it.
Below is a part of my debug log.
For me looks anything good or I am just to blind to see what is wrong.
For any advice I would be very grateful!

best
Nihil

INFO ESPHome 2023.5.5
INFO Reading configuration sz.yaml...
INFO Generating C++ source...
INFO Core config or version changed, cleaning build files...
INFO Deleting .esphome/build/stromzaehler/.pioenvs
INFO Deleting .esphome/build/stromzaehler/.piolibdeps
INFO Compiling app...
Processing stromzaehler (board: esp32dev; framework: arduino; platform: platformio/[email protected])
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Library Manager: Installing esphome/AsyncTCP-esphome @ 1.2.2
INFO Installing esphome/AsyncTCP-esphome @ 1.2.2
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Installing esphome/ESPAsyncWebServer-esphome @ 2.1.0
INFO Installing esphome/ESPAsyncWebServer-esphome @ 2.1.0
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 2.1.0
|   |-- AsyncTCP-esphome @ 1.2.2
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
Compiling .pioenvs/stromzaehler/src/esphome/components/api/api_connection.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/api/api_frame_helper.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/api/api_pb2.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/api/api_pb2_service.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/api/api_server.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/api/list_entities.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/api/proto.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/api/subscribe_state.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/api/user_services.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/captive_portal/captive_portal.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/esp32/core.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/esp32/gpio.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/esp32/preferences.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/logger/logger.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/md5/md5.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/mdns/mdns_component.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/mdns/mdns_esp32.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/mdns/mdns_esp8266.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/mdns/mdns_host.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/mdns/mdns_rp2040.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/network/util.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/ota/ota_backend_arduino_rp2040.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/ota/ota_backend_esp_idf.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/ota/ota_component.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/sensor/automation.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/sensor/filter.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/sensor/sensor.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/sml/sensor/sml_sensor.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/sml/sml.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/sml/sml_parser.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/socket/bsd_sockets_impl.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/socket/lwip_raw_tcp_impl.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/socket/socket.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/uart/uart.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/uart/uart_component.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/uart/uart_component_esp32_arduino.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/uart/uart_component_esp8266.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/uart/uart_component_esp_idf.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/uart/uart_component_rp2040.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/uart/uart_debugger.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/web_server_base/web_server_base.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/wifi/wifi_component.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/wifi/wifi_component_esp32_arduino.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/wifi/wifi_component_esp_idf.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/components/wifi/wifi_component_pico_w.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/core/application.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/core/color.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/core/component.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/core/component_iterator.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/core/controller.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/core/entity_base.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/core/helpers.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/core/log.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/core/scheduler.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/core/string_ref.cpp.o
Compiling .pioenvs/stromzaehler/src/esphome/core/util.cpp.o
Compiling .pioenvs/stromzaehler/src/main.cpp.o
Building .pioenvs/stromzaehler/bootloader.bin
Creating esp32 image...
Successfully created esp32 image.
Generating partitions .pioenvs/stromzaehler/partitions.bin
Compiling .pioenvs/stromzaehler/libf0a/AsyncTCP-esphome/AsyncTCP.cpp.o
Compiling .pioenvs/stromzaehler/lib18f/WiFi/WiFi.cpp.o
Compiling .pioenvs/stromzaehler/lib18f/WiFi/WiFiAP.cpp.o
Compiling .pioenvs/stromzaehler/lib18f/WiFi/WiFiClient.cpp.o
Archiving .pioenvs/stromzaehler/libf0a/libAsyncTCP-esphome.a
Compiling .pioenvs/stromzaehler/lib18f/WiFi/WiFiGeneric.cpp.o
Compiling .pioenvs/stromzaehler/lib18f/WiFi/WiFiMulti.cpp.o
Compiling .pioenvs/stromzaehler/lib18f/WiFi/WiFiSTA.cpp.o
Compiling .pioenvs/stromzaehler/lib18f/WiFi/WiFiScan.cpp.o
Compiling .pioenvs/stromzaehler/lib18f/WiFi/WiFiServer.cpp.o
Compiling .pioenvs/stromzaehler/lib18f/WiFi/WiFiUdp.cpp.o
Compiling .pioenvs/stromzaehler/lib6ca/FS/FS.cpp.o
Compiling .pioenvs/stromzaehler/lib6ca/FS/vfs_api.cpp.o
Compiling .pioenvs/stromzaehler/libb83/Update/HttpsOTAUpdate.cpp.o
Archiving .pioenvs/stromzaehler/lib18f/libWiFi.a
Compiling .pioenvs/stromzaehler/libb83/Update/Updater.cpp.o
Compiling .pioenvs/stromzaehler/lib1ee/ESPAsyncWebServer-esphome/AsyncEventSource.cpp.o
Compiling .pioenvs/stromzaehler/lib1ee/ESPAsyncWebServer-esphome/AsyncWebSocket.cpp.o
Archiving .pioenvs/stromzaehler/lib6ca/libFS.a
Compiling .pioenvs/stromzaehler/lib1ee/ESPAsyncWebServer-esphome/WebAuthentication.cpp.o
Archiving .pioenvs/stromzaehler/libb83/libUpdate.a
Compiling .pioenvs/stromzaehler/lib1ee/ESPAsyncWebServer-esphome/WebHandlers.cpp.o
Compiling .pioenvs/stromzaehler/lib1ee/ESPAsyncWebServer-esphome/WebRequest.cpp.o
Compiling .pioenvs/stromzaehler/lib1ee/ESPAsyncWebServer-esphome/WebResponses.cpp.o
Compiling .pioenvs/stromzaehler/lib1ee/ESPAsyncWebServer-esphome/WebServer.cpp.o
Compiling .pioenvs/stromzaehler/lib5e9/DNSServer/DNSServer.cpp.o
Compiling .pioenvs/stromzaehler/lib3c3/ESPmDNS/ESPmDNS.cpp.o
Archiving .pioenvs/stromzaehler/lib1ee/libESPAsyncWebServer-esphome.a
Archiving .pioenvs/stromzaehler/lib5e9/libDNSServer.a
Compiling .pioenvs/stromzaehler/FrameworkArduino/Esp.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/FirmwareMSC.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/HWCDC.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/HardwareSerial.cpp.o
Archiving .pioenvs/stromzaehler/lib3c3/libESPmDNS.a
Compiling .pioenvs/stromzaehler/FrameworkArduino/IPAddress.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/IPv6Address.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/MD5Builder.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/Print.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/Stream.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/StreamString.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/Tone.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/USB.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/USBCDC.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/USBMSC.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/WMath.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/WString.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/base64.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/cbuf.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-adc.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-bt.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-cpu.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-dac.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-gpio.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-i2c-slave.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-i2c.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-ledc.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-matrix.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-misc.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-psram.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-rgb-led.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-rmt.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-sigmadelta.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-spi.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-time.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-timer.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-tinyusb.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-touch.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/esp32-hal-uart.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/firmware_msc_fat.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/libb64/cdecode.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/libb64/cencode.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/main.cpp.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/stdlib_noniso.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/wiring_pulse.c.o
Compiling .pioenvs/stromzaehler/FrameworkArduino/wiring_shift.c.o
Archiving .pioenvs/stromzaehler/libFrameworkArduino.a
Linking .pioenvs/stromzaehler/firmware.elf
RAM:   [=         ]  12.4% (used 40528 bytes from 327680 bytes)
Flash: [=====     ]  46.1% (used 846321 bytes from 1835008 bytes)
Building .pioenvs/stromzaehler/firmware.bin
Creating esp32 image...
Successfully created esp32 image.
esp32_create_combined_bin([".pioenvs/stromzaehler/firmware.bin"], [".pioenvs/stromzaehler/firmware.elf"])
Wrote 0xe0080 bytes to file /config/.esphome/build/stromzaehler/.pioenvs/stromzaehler/firmware-factory.bin, ready to flash to offset 0x0
==================================================================================================================================================================================================================================== [SUCCESS] Took 36.56 seconds ====================================================================================================================================================================================================================================
INFO Successfully compiled program.
Found multiple options, please choose one:
  [1] /dev/ttyUSB0 (Sonoff Zigbee 3.0 USB Dongle Plus - Sonoff Zigbee 3.0 USB Dongle Plus)
  [2] Over The Air (stromzaehler.local)
(number): 2
INFO Resolving IP address of stromzaehler.local
INFO  -> 192.168.xxx.xxx
INFO Uploading .esphome/build/stromzaehler/.pioenvs/stromzaehler/firmware.bin (852096 bytes)
Uploading: [============================================================] 100% Done...

INFO Waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from stromzaehler.local using esphome API
INFO Successfully connected to stromzaehler.local
[10:28:14][I][app:102]: ESPHome version 2023.5.5 compiled on Jun 15 2023, 10:27:24
[10:28:14][C][wifi:505]: WiFi:
[10:28:14][C][wifi:363]:   Local MAC: 94:E6:86:xx:xx:xx
[10:28:14][C][wifi:364]:   SSID: 'Weyland Yutani'
[10:28:14][C][wifi:365]:   IP Address: 192.168.xxx.xxx
[10:28:14][C][wifi:367]:   BSSID: 00:0C:F6:xx:xx:xx
[10:28:14][C][wifi:368]:   Hostname: 'stromzaehler'
[10:28:14][C][wifi:370]:   Signal strength: -65 dB ▂▄▆█
[10:28:14][C][wifi:374]:   Channel: 11
[10:28:14][C][wifi:375]:   Subnet: 255.255.255.0
[10:28:14][C][wifi:376]:   Gateway: 192.168.xxx.xxx
[10:28:14][C][wifi:377]:   DNS1: 192.168.xxx.xxx
[10:28:14][C][wifi:378]:   DNS2: 0.0.0.0
[10:28:14][C][logger:301]: Logger:
[10:28:14][C][logger:302]:   Level: DEBUG
[10:28:14][C][logger:303]:   Log Baud Rate: 115200
[10:28:14][C][logger:305]:   Hardware UART: UART0
[10:28:14][C][uart.arduino_esp32:124]: UART Bus 1:
[10:28:14][C][uart.arduino_esp32:126]:   RX Pin: GPIO27
[10:28:14][C][uart.arduino_esp32:128]:   RX Buffer Size: 256
[10:28:14][C][uart.arduino_esp32:130]:   Baud Rate: 9600 baud
[10:28:15][C][uart.arduino_esp32:131]:   Data Bits: 8
[10:28:15][C][uart.arduino_esp32:132]:   Parity: NONE
[10:28:15][C][uart.arduino_esp32:133]:   Stop bits: 1
[10:28:15][C][sml:091]: SML:
[10:28:15][C][sml_sensor:033]: SML 'Stromzaehler Total energy'
[10:28:15][C][sml_sensor:033]:   Device Class: 'energy'
[10:28:15][C][sml_sensor:033]:   State Class: 'total_increasing'
[10:28:15][C][sml_sensor:033]:   Unit of Measurement: 'kWh'
[10:28:15][C][sml_sensor:033]:   Accuracy Decimals: 3
[10:28:15][C][sml_sensor:037]:   OBIS Code: 1-0:1.8.0
[10:28:15][C][captive_portal:088]: Captive Portal:
[10:28:15][C][mdns:108]: mDNS:
[10:28:15][C][mdns:109]:   Hostname: stromzaehler
[10:28:15][C][ota:093]: Over-The-Air Updates:
[10:28:15][C][ota:094]:   Address: stromzaehler.local:3232
[10:28:15][C][ota:097]:   Using Password.
[10:28:15][C][api:138]: API Server:
[10:28:15][C][api:139]:   Address: stromzaehler.local:6053
[10:28:15][C][api:143]:   Using noise encryption: NO
[10:28:25][D][api:102]: Accepted 192.168.xxx.xxx
[10:28:25][W][api.connection:087]: ESPHome Logs 2023.5.5 (192.168.xxx.xxx): Connection closed


[12:37:00][VV][api.service:476]: on_hello_request: HelloRequest {
  client_info: 'aioesphomeapi'
  api_version_major: 1
  api_version_minor: 7
}
[12:37:00][V][api.connection:941]: Hello from client: 'aioesphomeapi (192.168.xxx.xxx)' | API Version 1.7
[12:37:00][VV][api.service:013]: send_hello_response: HelloResponse {
  api_version_major: 1
  api_version_minor: 8
  server_info: 'stromzaehler (esphome v2023.5.5)'
  name: 'stromzaehler'
}
[12:37:00][VV][api.service:530]: on_device_info_request: DeviceInfoRequest {}
[12:37:00][VV][api.service:049]: send_device_info_response: DeviceInfoResponse {
  uses_password: NO
  name: 'stromzaehler'
  mac_address: '94:E6:86:xx:xx:xx'
  esphome_version: '2023.5.5'
  compilation_time: 'Jun 15 2023, 12:36:02'
  model: 'esp32dev'
  has_deep_sleep: NO
  project_name: ''
  project_version: ''
  webserver_port: 80
  bluetooth_proxy_version: 0
  manufacturer: 'Espressif'
  friendly_name: ''
  voice_assistant_version: 0
}
[12:37:00][VV][api.socket:813]: aioesphomeapi (192.168.xxx.xxx): Connection closed
[12:37:00][W][api.connection:087]: aioesphomeapi (192.168.xxx.xxx): Connection closed
[12:37:00][V][api:114]: Removing connection to aioesphomeapi (192.168.xxx.xxx)
[12:37:00][D][api:102]: Accepted 192.168.xxx.xxx
[12:37:00][VV][api.service:476]: on_hello_request: HelloRequest {
  client_info: 'Home Assistant 2023.6.1'
  api_version_major: 1
  api_version_minor: 7
}
[12:37:00][V][api.connection:941]: Hello from client: 'Home Assistant 2023.6.1 (192.168.xxx.xxx)' | API Version 1.7
[12:37:00][VV][api.service:013]: send_hello_response: HelloResponse {
  api_version_major: 1
  api_version_minor: 8
  server_info: 'stromzaehler (esphome v2023.5.5)'
  name: 'stromzaehler'
}
[12:37:00][VV][api.service:485]: on_connect_request: ConnectRequest {
  password: ''
}
[12:37:00][D][api.connection:959]: Home Assistant 2023.6.1 (192.168.xxx.xxx): Connected successfully
[12:37:00][VV][api.service:019]: send_connect_response: ConnectResponse {
  invalid_password: NO
}
[12:37:00][VV][api.service:530]: on_device_info_request: DeviceInfoRequest {}
[12:37:00][VV][api.service:049]: send_device_info_response: DeviceInfoResponse {
  uses_password: NO
  name: 'stromzaehler'
  mac_address: '94:E6:86:xx:xx:xx'
  esphome_version: '2023.5.5'
  compilation_time: 'Jun 15 2023, 12:36:02'
  model: 'esp32dev'
  has_deep_sleep: NO
  project_name: ''
  project_version: ''
  webserver_port: 80
  bluetooth_proxy_version: 0
  manufacturer: 'Espressif'
  friendly_name: ''
  voice_assistant_version: 0
}
[12:37:00][VV][api.service:539]: on_list_entities_request: ListEntitiesRequest {}
[12:37:00][VV][api.service:132]: send_list_entities_sensor_response: ListEntitiesSensorResponse {
  object_id: 'total_energy'
  key: 173145652
  name: 'Total energy'
  unique_id: 'stromzaehlersensortotal_energy'
  icon: ''
  unit_of_measurement: 'kWh'
  accuracy_decimals: 3
  force_update: NO
  device_class: 'energy'
  state_class: STATE_CLASS_TOTAL_INCREASING
  legacy_last_reset_type: LAST_RESET_NONE
  disabled_by_default: NO
  entity_category: ENTITY_CATEGORY_NONE
}
[12:37:00][VV][api.service:055]: send_list_entities_done_response: ListEntitiesDoneResponse {}
[12:37:00][VV][api.service:548]: on_subscribe_states_request: SubscribeStatesRequest {}
[12:37:00][VV][api.service:610]: on_subscribe_homeassistant_services_request: SubscribeHomeassistantServicesRequest {}
[12:37:00][VV][api.service:140]: send_sensor_state_response: SensorStateResponse {
  key: 173145652
  state: nan
  missing_state: YES
}
[12:37:00][VV][api.service:637]: on_subscribe_home_assistant_states_request: SubscribeHomeAssistantStatesRequest {}
[12:37:00][D][uart_debug:114]: <<< B1:1E:52:FF:B2:10:89:0B:77:07:01:00:88:07:00:FF:40:40:AC:23:2A:52:25:01:77:07:01:00:20:07:00:FF:C0:40:AC:24:AA:AC:68:0A:77:07:01:00:34:07:00:FF:40:40:AC:24:AA:6C:42:53:77:07:01:00:48:07:00:FF:C0:01:62:23:52:FF:AC:E8:2B:77:07:01:00:3F:07:00:FF:40:C0:AC:92:F9:B1:2D:77:07:01:00:33:07:00:FF:40:40:AC:92:F9:B1:59:77:07:01:00:47:07:00:FF:40:40:AC:26:E5:B1:2C:77:07:01:00:51:07:01:FF:40:40:2C:48:05:53:00:EE:01:77:07:01:00:51:07:02:FF:40:40:2C:98:05:52
[12:37:01][D][uart_debug:114]: <<< 73:01:77:07:01:00:51:07:04:FF:40:40:2C:48:05:53:01:14:01:77:07:01:00:51:07:0F:FF:40:40:6C:48:05:53:01:15:01:77:07:01:00:51:07:1A:FF:40:40:2C:48:05:53:01:18:01:77:07:01:00:0E:07:00:FF:40:C0:2C:49:F5:AC:F3:40:D7:50:00:00:02:00:00:01:01:01:01:06:30:33:2E:30:30:01:77:07:01:00:60:5A:02:01:01:01:01:01:03:42:BD:01:77:07:01:00:61:61:00:00:01:01:01:01:03:00:00:01:77:07:01:00:60:32:01:04:01:01:01:01:08:50:31:2E:32:2E:31:32:01:77:07:01:00:60:32:04:04:01:01
[12:37:01][D][uart_debug:114]: <<< 01:01:03:04:22:01:01:01:63:48:B4:00:76:05:00:33:20:64:62:00:62:00:72:63:02:01:71:01:63:F6:34:00:00:1B:1B:1B:1B:1A:02:E1:88
[12:37:01][D][uart_debug:114]: <<< B4:B4:B4:14:01:01:01:76:05:00:33:20:65:62:00:62:00:72:63:01:01:76:01:07:FF:41:11:0A:CD:0B:0A:01:45:46:52:21:02:CF:69:49:72:62:01:65:01:F6:BE:FD:40:EC:45:00:76:05:00:33:20:66:62:00:62:00:72:63:07:01:77:07:FF:21:A1:45:46:52:21:02:CF:69:49:07:01:00:62:0A:FF
[12:37:01][D][uart_debug:114]: <<< B9:62:01:65:01:F6:BE:FD:FC:D0:D7:50:00:60:32:01:01:01:01:01:01:04:45:46:52:01:77:07:01:00:60:01:00:FF:40:40:40:40:21:A1:45:46:52:21:02:CF:69:49:01:77:07:01:00:01:08:00:FF:B2:04:04:72:62:01:65:01:F6:BE:FD:B1:24:F5:59:20:56:DC:2A:77:07:01:00:02:08:00:FF:40:2E:AC:65:01:F6:BE:FD:B1:24:F5:B2:10:19:5A:77:07:01:00:10:07:00:FF:C0:40:AC:23:2A:52:22:01:77:07:01:00:20
[12:37:01][D][uart_debug:114]: <<< 07:00:FF:40:40:AC:24:AA:AC:88:0A:77:07:01:00:34:07:00:FF:40:40:AC:24:AA:AC:68:0A:77:07:01:00:48:07:00:FF:40:40:AC:24:EA:AC:98:2B:77:07:01:00:3F:07:00:FF:40:40:AC:92:F9:B1:2D:77:07:01:00:33:07:00:FF:40:40:AC:92:F9:B1:59:77:07:01:00:47:07:00:FF:40:40:6C:48:2A:B1:2C:77:07:01:00:51:07:01:FF:40:40:2C:48:05:53:00:EF:C0:D7:50:00:51:07:02:FF:C0:40:2C:48:05:52:77:01
[12:37:02][D][uart_debug:114]: <<< 77:07:01:00:51:07:04:FF:40:40:2C:48:05:53:01:0E:01:77:07:01:00:51:07:0F:FF:C0:40:2C:48:05:53:01:10:01:77:07:01:00:51:07:1A:FF:40:40:2C:48:05:53:01:12:01:77:07:01:00:0E:07:00:FF:40:40:2C:49:F5:AC:F3:40:D7:50:00:00:02:00:00:01:01:01:01:06:30:33:2E:30:30:01:77:07:01:00:60:5A:02:01:01:01:01:01:03:42:BD:01:77:07:01:00:61:61:00:00:01:01:01:01:03:00:00:01:77:07:01:00:60:32:01:04:01:01:01:01:08:50:31:2E:32:2E:31:32:01:77:07:01:00:60:32:04:04:01:01:01:01

No more necessary.
Tasmota with MQQT did it with same hard ware, what ESPHome couldn’t.

Hello everyone. I have the exact same issue. I have been working on this for several days. I tried different baud rates, stop bits, configured a manual IP. I even flashed fresh D1 minis and bought a different IR-reader. Nothing helped and i recieved different errors on my way: The entity is non-numeric, the entity is not available were the mos common ones. NOw I am exactly at the point where Nihil_Unum is. If someone could look into my confing and logs, I would be very greatful. Maybe I overlokked something:

`esphome:
  name: zph-g305
  friendly_name: ZPH G305

esp8266:
  board: d1_mini

# Enable logging
logger:
  level: VERY_VERBOSE

# Enable Home Assistant API
api:
  encryption:
    key: "***"

ota:
  password: "***"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Optional manual IP
  manual_ip:
    static_ip: ***
    gateway: ***
    subnet: ***

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Zph-G305 Fallback Hotspot"
    password: "***"

captive_portal:

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

sml:
  id: mysml
  uart_id: uart_bus

sensor:
  - platform: sml
    name: "Total energy"
    sml_id: mysml
    #server_id: "0123456789abcdef"
    obis_code: "1-1:1.8.0"
    unit_of_measurement: kWh
    accuracy_decimals: 1
    device_class: energy
    state_class: total_increasing
    filters:
      - multiply: 0.0001

And this is a typical log file from very verbose:

INFO ESPHome 2023.6.4
INFO Reading configuration /config/esphome/zph-g305.yaml…
INFO Starting log output from 192.168.178.113 using esphome API
INFO Successfully connected to 192.168.178.113
[17:03:10][I][app:102]: ESPHome version 2023.6.4 compiled on Jul 6 2023, 16:44:01
[17:03:10][C][wifi:543]: WiFi:
[17:03:10][C][wifi:379]: Local MAC: 34:94:54:8E:83:EA
[17:03:10][C][wifi:380]: SSID: [redacted]
[17:03:10][C][wifi:381]: IP Address: 192.168.178.113
[17:03:10][C][wifi:382]: BSSID: [redacted]
[17:03:10][C][wifi:384]: Hostname: ‘zph-g305’
[17:03:10][C][wifi:386]: Signal strength: -53 dB ▂▄▆█
[17:03:10][V][wifi:388]: Priority: 0.0
[17:03:10][C][wifi:390]: Channel: 8
[17:03:10][C][wifi:391]: Subnet: 255.255.255.0
[17:03:10][C][wifi:392]: Gateway: 192.168.10.2
[17:03:10][C][wifi:393]: DNS1: 0.0.0.0
[17:03:10][C][wifi:394]: DNS2: 0.0.0.0
[17:03:10][C][logger:301]: Logger:
[17:03:10][C][logger:302]: Level: VERY_VERBOSE
[17:03:10][C][logger:303]: Log Baud Rate: 115200
[17:03:10][C][logger:305]: Hardware UART: UART0
[17:03:10][C][uart.arduino_esp8266:102]: UART Bus:
[17:03:10][C][uart.arduino_esp8266:104]: RX Pin: GPIO4
[17:03:10][C][uart.arduino_esp8266:106]: RX Buffer Size: 256
[17:03:10][C][uart.arduino_esp8266:108]: Baud Rate: 9600 baud
[17:03:10][C][uart.arduino_esp8266:109]: Data Bits: 8
[17:03:10][C][uart.arduino_esp8266:110]: Parity: NONE
[17:03:10][C][uart.arduino_esp8266:111]: Stop bits: 1
[17:03:10][C][uart.arduino_esp8266:115]: Using software serial
[17:03:10][C][sml:091]: SML:
[17:03:10][C][sml_sensor:033]: SML ‘Total energy’
[17:03:10][C][sml_sensor:033]: Device Class: ‘energy’
[17:03:10][C][sml_sensor:033]: State Class: ‘total_increasing’
[17:03:10][C][sml_sensor:033]: Unit of Measurement: ‘kWh’
[17:03:10][C][sml_sensor:033]: Accuracy Decimals: 1
[17:03:10][C][sml_sensor:037]: OBIS Code: 1-1:1.8.0
[17:03:10][C][captive_portal:088]: Captive Portal:
[17:03:10][C][mdns:112]: mDNS:
[17:03:10][C][mdns:113]: Hostname: zph-g305
[17:03:10][V][mdns:114]: Services:
[17:03:10][V][mdns:116]: - _esphomelib, _tcp, 6053
[17:03:10][V][mdns:118]: TXT: friendly_name = ZPH G305
[17:03:10][V][mdns:118]: TXT: version = 2023.6.4
[17:03:10][V][mdns:118]: TXT: mac = 3494548e83ea
[17:03:10][V][mdns:118]: TXT: platform = ESP8266
[17:03:10][V][mdns:118]: TXT: board = d1_mini
[17:03:10][V][mdns:118]: TXT: network = wifi
[17:03:10][V][mdns:118]: TXT: api_encryption = Noise_NNpsk0_25519_ChaChaPoly_SHA256
[17:03:10][C][ota:093]: Over-The-Air Updates:
[17:03:10][C][ota:094]: Address: 192.168.178.113:8266
[17:03:10][C][ota:097]: Using Password.
[17:03:10][C][api:138]: API Server:
[17:03:10][C][api:139]: Address: 192.168.178.113:6053
[17:03:10][C][api:141]: Using noise encryption: YES
[17:03:21][VV][api.service:540]: on_ping_request: PingRequest {}
[17:03:21][VV][api.service:043]: send_ping_response: PingResponse {}
[17:03:30][VV][api.service:540]: on_ping_request: PingRequest {}
[17:03:30][VV][api.service:043]: send_ping_response: PingResponse {}
[17:03:41][VV][api.service:540]: on_ping_request: PingRequest {}
[17:03:41][VV][api.service:043]: send_ping_response: PingResponse {}
[17:03:50][VV][api.service:540]: on_ping_request: PingRequest {}
[17:03:50][VV][api.service:043]: send_ping_response: PingResponse {}
[17:04:02][VV][api.service:540]: on_ping_request: PingRequest {}
[17:04:02][VV][api.service:043]: send_ping_response: PingResponse {}
[17:04:07][VV][scheduler:225]: Running interval ‘’ with interval=60000 last_execution=1027881 (now=1087881)
[17:04:10][VV][api.service:540]: on_ping_request: PingRequest {}
[17:04:10][VV][api.service:043]: send_ping_response: PingResponse {}
[17:04:21][VV][api.service:540]: on_ping_request: PingRequest {}
[17:04:21][VV][api.service:043]: send_ping_response: PingResponse {}
[17:04:30][VV][api.service:540]: on_ping_request: PingRequest {}
[17:04:30][VV][api.service:043]: send_ping_response: PingResponse {}
[17:04:41][VV][api.service:540]: on_ping_request: PingRequest {}
[17:04:41][VV][api.service:043]: send_ping_response: PingResponse {}