Keine verbindung mehr zu SDM230 nach ESPHome update

Hallo zusammen,
ich habe heute erst das update auf HA core 2025.10.4 gemacht und auch das update von esphome auf 2025.10.3.

danach die esps vom inverter, vom BMS, von den Temeperatursensoren und zum schluss das vom Verbrauchszähler SDM230 modbus.

ich hab das update auch vorher auf meinem versuchs HA gemacht ohne probleme da hängt auch kein sdm230 drauf :slight_smile:

so nun nach dem update bekomme ich keine verbindung mehr zum Zähler

INFO ESPHome 2025.10.3
INFO Reading configuration /config/esphome/sdm230grid.yaml...
INFO Detected timezone 'Europe/Vienna'
INFO Starting log output from 192.168.0.194 using esphome API
INFO Successfully resolved sdm2grid @ 192.168.0.194 in 0.000s
INFO Successfully connected to sdm2grid @ 192.168.0.194 in 0.007s
INFO Successful handshake with sdm2grid @ 192.168.0.194 in 0.087s
[08:44:33.950][I][app:185]: ESPHome version 2025.10.3 compiled on Oct 26 2025, 08:24:29
[08:44:33.951][C][wifi:679]: WiFi:
[08:44:33.952][C][wifi:458]:   Local MAC: 00:4B:12:33:C3:A0
[08:44:33.956][C][wifi:465]:   IP Address: 192.168.0.194
[08:44:33.963][C][wifi:469]:   SSID: [redacted]
[08:44:33.963][C][wifi:469]:   BSSID: [redacted]
[08:44:33.963][C][wifi:469]:   Hostname: 'sdm2grid'
[08:44:33.963][C][wifi:469]:   Signal strength: -27 dB ▂▄▆█
[08:44:33.963][C][wifi:469]:   Channel: 5
[08:44:33.963][C][wifi:469]:   Subnet: 255.255.255.0
[08:44:33.963][C][wifi:469]:   Gateway: 192.168.0.1
[08:44:33.963][C][wifi:469]:   DNS1: 0.0.0.0
[08:44:33.963][C][wifi:469]:   DNS2: 0.0.0.0
[08:44:33.965][C][logger:261]: Logger:
[08:44:33.965][C][logger:261]:   Max Level: DEBUG
[08:44:33.965][C][logger:261]:   Initial Level: DEBUG
[08:44:33.966][C][logger:267]:   Log Baud Rate: 0
[08:44:33.966][C][logger:267]:   Hardware UART: UART0
[08:44:33.968][C][logger:274]:   Task Log Buffer Size: 768
[08:44:33.980][C][uart.idf:190]: UART Bus 0:
[08:44:33.983][C][uart.idf:191]:   TX Pin: GPIO17
[08:44:33.983][C][uart.idf:192]:   RX Pin: GPIO16
[08:44:33.983][C][uart.idf:195]:   RX Buffer Size: 256
[08:44:33.983][C][uart.idf:195]:   RX Full Threshold: 8
[08:44:33.983][C][uart.idf:195]:   RX Timeout: 2
[08:44:33.986][C][uart.idf:201]:   Baud Rate: 9600 baud
[08:44:33.986][C][uart.idf:201]:   Data Bits: 8
[08:44:33.986][C][uart.idf:201]:   Parity: NONE
[08:44:33.986][C][uart.idf:201]:   Stop bits: 1
[08:44:34.008][C][modbus:196]: Modbus:
[08:44:34.009][C][modbus:197]:   Flow Control Pin: GPIO4
[08:44:34.011][C][modbus:198]:   Send Wait Time: 250 ms
[08:44:34.011][C][modbus:198]:   CRC Disabled: NO
[08:44:34.015][C][restart:087]: Restart Switch 'sdm2grid Restart'
[08:44:34.015][C][restart:087]:   Restore Mode: always OFF
[08:44:34.015][C][restart:095]:   Icon: 'mdi:restart'
[08:44:34.035][C][homeassistant.time:010]: Home Assistant Time:
[08:44:34.035][C][homeassistant.time:010]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[08:44:34.036][C][modbus_controller.sensor:015]: modbus_controller.sensorModbus Controller Sensor 'SDM230 Power'
[08:44:34.036]modbus_controller.sensor  State Class: 'measurement'
[08:44:34.036]modbus_controller.sensor  Unit of Measurement: 'W'
[08:44:34.036]modbus_controller.sensor  Accuracy Decimals: 2
[08:44:34.036][C][modbus_controller.sensor:025]: modbus_controller.sensor  Device Class: 'power'
[08:44:34.053][C][modbus_controller.sensor:015]: modbus_controller.sensorModbus Controller Sensor 'SDM230 Import Active Energie'
[08:44:34.053]modbus_controller.sensor  State Class: 'total_increasing'
[08:44:34.053]modbus_controller.sensor  Unit of Measurement: 'kWh'
[08:44:34.053]modbus_controller.sensor  Accuracy Decimals: 2
[08:44:34.055][C][modbus_controller.sensor:025]: modbus_controller.sensor  Device Class: 'energy'
[08:44:34.056][C][modbus_controller.sensor:015]: modbus_controller.sensorModbus Controller Sensor 'SDM230 Total Export Energie'
[08:44:34.056]modbus_controller.sensor  State Class: 'total_increasing'
[08:44:34.056]modbus_controller.sensor  Unit of Measurement: 'kWh'
[08:44:34.056]modbus_controller.sensor  Accuracy Decimals: 2
[08:44:34.057][C][modbus_controller.sensor:025]: modbus_controller.sensor  Device Class: 'energy'
[08:44:34.078][C][captive_portal:116]: Captive Portal:
[08:44:34.090][C][web_server:317]: Web Server:
[08:44:34.090][C][web_server:317]:   Address: 192.168.0.194:80
[08:44:34.098][C][esphome.ota:093]: Over-The-Air updates:
[08:44:34.098][C][esphome.ota:093]:   Address: 192.168.0.194:3232
[08:44:34.098][C][esphome.ota:093]:   Version: 2
[08:44:34.099][C][esphome.ota:100]:   Password configured
[08:44:34.110][C][safe_mode:018]: Safe Mode:
[08:44:34.110][C][safe_mode:018]:   Successful after: 60s
[08:44:34.110][C][safe_mode:018]:   Invoke after: 10 attempts
[08:44:34.110][C][safe_mode:018]:   Duration: 300s
[08:44:34.119][C][web_server.ota:241]: Web Server OTA
[08:44:34.131][C][api:222]: Server:
[08:44:34.131][C][api:222]:   Address: 192.168.0.194:6053
[08:44:34.131][C][api:222]:   Listen backlog: 4
[08:44:34.131][C][api:222]:   Max connections: 8
[08:44:34.131][C][api:229]:   Noise encryption: YES
[08:44:34.138][C][mdns:179]: mDNS:
[08:44:34.138][C][mdns:179]:   Hostname: sdm2grid
[08:44:34.150][C][modbus_controller:448]: ModbusController:
[08:44:34.150][C][modbus_controller:448]:   Address: 0x01
[08:44:34.150][C][modbus_controller:448]:   Max Command Retries: 4
[08:44:34.150][C][modbus_controller:448]:   Offline Skip Updates: 0
[08:44:34.150][C][modbus_controller:448]:   Server Courtesy Response:
[08:44:34.150][C][modbus_controller:448]:     Enabled: false
[08:44:34.150][C][modbus_controller:448]:     Register Last Address: 0xFFFF
[08:44:34.150][C][modbus_controller:448]:     Register Value: 0
[08:44:34.615][W][modbus:145]: Modbus CRC Check failed! 7802!=2E0D
[08:44:34.886][W][modbus:145]: Modbus CRC Check failed! DF51!=A6B
[08:44:35.163][W][modbus:145]: Modbus CRC Check failed! C7AC!=1DE3
[08:44:35.432][W][modbus:145]: Modbus CRC Check failed! F5B9!=E3F6
[08:44:35.677][D][modbus_controller:039]: Modbus command to device=1 register=0x0C no response received - removed from send queue
[08:44:35.720][W][modbus:145]: Modbus CRC Check failed! 1EC8!=44CF
[08:44:37.032][D][modbus_controller:039]: Modbus command to device=1 register=0x48 no response received - removed from send queue

bis zum update um 8uhr 13 war alles gut

doch jetzt tut sich nichts mehr. Ich hab auch schon versucht die konfiguration zu ändern aber ohne erfolg.
Es ist ja nicht der einzige MaxRs485 den ich verwende.

#max485 esp32dev

substitutions:
  settings_skipped_updates: "30"
  devicename: "sdm2grid"
  device_description: "SDM RS485 Logger USBC"
  friendly_name: "sdm230"

esphome:
  name: $devicename
  comment: '${device_description}'
  
esp32:
  board: esp32dev
  #board: nodemcu-32s
  framework:
    type: arduino

#Enable webserver
web_server:
  port: 80
  auth:
    username: sdm
    password: sdm
  version: 2
  log: true
  ota: false

# Enable logging
logger:
  level: DEBUG
  baud_rate: 0

# Enable Home Assistant API
api:
  encryption:
    key: !secret api_key

ota:
  password: sdm_ota_update
  platform: esphome

wifi:
  ssid: !secret wifi_ssid2
  password: !secret wifi_password2

  # Optional manual IP 192.168.0.195 für testzwecke
  manual_ip:
    static_ip: 192.168.0.194
    gateway: 192.168.0.1
    subnet: 255.255.255.0

  ap:
    ssid: '${devicename}'
    password: sdmsdmsdmsdm

  fast_connect: true
  power_save_mode: none

captive_portal:

switch:
  - platform: restart
    name: ${devicename} Restart
    
# Enable time component to reset energy at midnight
time:
  - platform: homeassistant
    id: homeassistant_time

# UART for RS485 Modbus Communication
uart: #
  id: mod_bus
  tx_pin: GPIO17  # TX-Pin GPIO17 = DI
  rx_pin: GPIO16  # RX-Pin GPIO16 = RO
  baud_rate: 9600 # oder 2400 9600
  stop_bits: 1

modbus:
  id: sdm230_modbus
  #uart_id: mod_bus
  #send_wait_time: 1000ms
  flow_control_pin: GPIO4  # FlowControl DE/RE Pin für MAX485-Modul

modbus_controller:
  - id: sdm230_1
    modbus_id: sdm230_modbus
    address: 0x01
    #address: 1  # Modbus-Adresse für SDM230 (falls anders, anpassen)
    setup_priority: -10
    #update_interval: 7s
    update_interval: "15s"
    command_throttle: "50ms"

als code verwende ich den oberhalb angeführen

hab ihr noch eine idee was ich aus der ferne versuchen könnte da der zähler gute 2 stunden fahrt von mir hängt und ich nur mit fernwartug am HA hänge :slight_smile:
danke im voraus und einen schönen sonntag noch

Ich tippe mal darauf

Schau mal genauer hier nach:

Und daraus dann:

Ich würde aus der Ferne also erst einmal das abändern:


# Example configuration entry
esp32:
  board: ...
  framework:
    type: esp-idf

erklärt eigentlich der ChangeLog von ESPHome da viel geändert wurde
=> hast Du das alles Beachtet und umgestellt?

Bei meiner ESPHome Docker Version kann ich jede beliebige Version verwenden
Aber der ESP muss natürlich nach einem „downgrade“ auf ESPHome v14.xxx wider neu geflasht werden

warum klickst Du dann wissentlich auf diesen Botton

sorry :nerd_face: nicht böse gemeint :grinning:

gelöst