Nach ESPHome Update 2026.1.0 funktioniert der AHT10 nicht mehr

Hallo,

nach ESPHome Update 2026.1.0 funktioniert der AHT10 nicht mehr.

Fehlermeldung:

[17:46:25.415][C][aht10:157]: Address: 0x38 [17:46:25.415][E][aht10:159]: Communication failed [17:46:25.419][C][aht10:016]: Temperature 'Temperatur' [17:46:25.419][C][aht10:016]: State Class: 'measurement' [17:46:25.419][C][aht10:016]: Unit of Measurement: '°C' [17:46:25.419][C][aht10:016]: Accuracy Decimals: 2 [17:46:25.434][C][aht10:026]: Device Class: 'temperature' [17:46:25.434][C][aht10:016]: Humidity 'Luftfeuchtigkeit' [17:46:25.434][C][aht10:016]: State Class: 'measurement' [17:46:25.434][C][aht10:016]: Unit of Measurement: '%' [17:46:25.434][C][aht10:016]: Accuracy Decimals: 2 [17:46:25.449][C][aht10:026]: Device Class: 'humidity' [17:46:25.452][E][component:226]: aht10.sensor is marked FAILED: unspecified

kennt jemand das Problem und hat eine Lösung?

hier schon nachgesehen, ob es von den Änderungen betroffen ist?

danke für den Hinweis, hatte ich schon durchgeschaut, aber keine Hinweise gefunden

Was hast du als Framework? Arduino oder nichts eingetragen, so dass es nun auf esp-idf geändert wurde? Vielleicht macht das einen Unterschied

hier meinen Code:

> esphome:
>
>   name: keller-esp
>
>   friendly_name: Keller-ESP
>
> 
>
> esp8266:
>
>   board: esp01_1m
>
> 
>
> \# Enable logging
>
> logger:
>
> 
>
> \# Enable Home Assistant API
>
> api:
>
>   encryption:
>
>     key: "mwxFnm0/oeqkJRo54MEcv5oZJjTKc/lsfbz6fTWxd8o="
>
> 
>
> ota:
>
>   platform: esphome
>
>   password: "4986910b820374a85c767e78329c0ae6"
>
> 
>
> wifi:
>
>   ssid: !secret wifi_ssid
>
>   password: !secret wifi_password
>
>   min_auth_mode: WPA2  # Reject WPA-only networks
>
> 
>
>   \# Enable fallback hotspot (captive portal) in case wifi connection fails
>
>   ap:
>
>     ssid: "Keller-Esp Fallback Hotspot"
>
>     password: "Z8G3hbgLdVtq"
>
> 
>
> captive_portal:
>
> 
>
> sensor:
>
>   - platform: absolute_humidity
>
>     name: Ab_Feuchte_Keller
>
>     temperature: air_temperature
>
>     humidity: relative_humidity
>
>   
>
>   - platform: template
>
>     name: "TP_Keller"
>
>     lambda: |-
>
>       return (243.5\*(log(id(relative_humidity).state/100)+((17.67\*id(air_temperature).state)/
>
>       (243.5+id(air_temperature).state)))/(17.67-log(id(relative_humidity).state/100)-
>
>       ((17.67\*id(air_temperature).state)/(243.5+id(air_temperature).state))));
>
>     unit_of_measurement: °C
>
>     icon: 'mdi:thermometer-alert'
>
>   
>
>   
>
>   - platform: aht10
>
>     i2c_id: bus_a
>
>     variant: AHT10
>
>     temperature:
>
>       name: "Temperatur"
>
>       id: air_temperature
>
>     humidity:
>
>       name: "Luftfeuchtigkeit"
>
>       id: relative_humidity
>
>     update_interval: 60s
>
> 
>
>   - platform: bh1750
>
>     name: "Lichtstärke"
>
>     address: 0x23
>
>     filters:
>
>       - multiply: 10
>
>     update_interval: 60s
>
> 
>
>   
>
> 
>
> i2c:
>
>   scl: GPIO5
>
>   sda: GPIO4
>
>   scan: True
>
>   id: bus_a   
>
>   frequency: 100kHz
>
>   
>
> binary_sensor:
>
>   - platform: gpio
>
>     pin: 
>
>       number: 2
>
>       mode:
>
>        input: true
>
>        pullup: true
>
>       inverted: true
>
>     name: "Warnung"

:crayon:by HarryP: Code-/Logzeilen formatiert (bitte immer in </> einbinden)
s.a.: (Neues Update & Features - Hier in der Community 🫶)

Das was metallmanu schon vorgeschlagen hatte:

setzt mal das framework dediziert auf arduino. Und den Code bitte hier im Forum in Code-Tags einfassen. Sonst kann das keiner vernünftig lesen.

Danke für eure Hilfe, der ESP8266 funktioniert nun, ob es an meiner Änderung “frequency: 100kHz” gelegen hat, keine Ahnung. Der 2. ESP funktioniert aber immer noch nicht, versuche mich mal durch die Neuerungen im Framework einzulesen, so ganz blicke ich das noch nicht. Hier der Code:

esphome:
  name: heiz-esp
  friendly_name: Heiz-ESP

esp32:
  board: esp32dev
  framework:
    type: arduino

# Optional: falls BH1750-Linkerfehler auftritt (bekannter ESPHome-Bug)
#external_components:
#  - source: github://esphome/esphome@latest
#    components: [bh1750]

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "f3XNN7EP3X2kd3ZmD2mL/f9lsnNQK8bHBQuRtEJbYrg="


  

ota:
  platform: esphome
  password: "daa28440dcd26935c6beb047d60d110c"

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Heiz-Esp Fallback Hotspot"
    password: "OrtSw281YGSs"

captive_portal:
#one_wire:
#  - platform: gpio
#    pin: GPIO23 
#globals:
#  - id: total_pulse
#    type: int
#    restore_value: false
#    initial_value: '0'
sensor:
#  - platform: dallas_temp
#    address: 0x013ce1e381c7b628 
#    name: "Kessel"
#    unit_of_measurement: "°C"
#    icon: "mdi:thermometer-plus"
#    device_class: "temperature"
#    state_class: "measurement"
#    accuracy_decimals: 1      
#  - platform: pulse_meter
#    pin:
#      number: GPIO21
#      inverted: true
#      mode:
#        input: true
#        pullup: true
#    name: "Pulse Meter"
#    internal_filter: 100ms
#    total:
#      name: "Total Pulses"
  - platform: pulse_counter
    pin:
      number: GPIO21
      mode: INPUT_PULLUP
    unit_of_measurement: "L/min"
    name: "Liter pro minute"
    device_class: volume_flow_rate
    id: pulse_counter_id
    update_interval: 10s
    filters:
    - multiply: 0.00252525252525253 #1/396 pulses/min -> liter/min 0,00252525252525253

    total:
      unit_of_measurement: "L"
      name: "Liter total"
      state_class: total
      device_class: water
      filters:
        - multiply: 0.00252525252525253 #1/4396 pulses -> liter
    
  - platform: integration
    device_class: water
    state_class: total
    name: "Pumpe m³"
    unit_of_measurement: 'm³'
    accuracy_decimals: 4
    sensor: pulse_counter_id
    time_unit: min
    icon: "mdi:water"
    filters:
        - lambda: return (x / 1000);    

  - platform: aht10
    i2c_id: bus_a
    
    temperature:
      name: "Temperatur"
      id: air_temperature
    humidity:
      name: "Luftfeuchtigkeit"
      id: relative_humidity
    update_interval: 60s



  

i2c:
  scl: GPIO23
  sda: GPIO22
  scan: True
  id: bus_a   
  frequency: 100khz

Sind das 2 unterschiedliche boards, also ein 8266 und ein esp32?

das hilft niemanden, was steht im Log?

ok danke, hier die Daten:


Logs heiz-esp.yaml
INFO ESPHome 2026.1.0
INFO Reading configuration /config/esphome/heiz-esp.yaml...
INFO Starting log output from heiz-esp.local using esphome API
INFO Successfully resolved heiz-esp.local in 0.008s
INFO Successfully connected to heiz-esp @ 192.168.178.125 in 0.108s
INFO Successful handshake with heiz-esp @ 192.168.178.125 in 0.074s
[13:45:26.440][I][app:206]: ESPHome version 2026.1.0 compiled on 2026-01-22 12:49:57 +0100
[13:45:26.489][I][app:213]: ESP32 Chip: ESP32 r3.1, 2 core(s)
[13:45:26.490][W][app:222]: Set minimum_chip_revision: "3.1" to reduce binary size
[13:45:26.490][C][logger:316]: Logger:
[13:45:26.490][C][logger:316]:   Max Level: DEBUG
[13:45:26.490][C][logger:316]:   Initial Level: DEBUG
[13:45:26.490][C][logger:322]:   Log Baud Rate: 115200
[13:45:26.490][C][logger:322]:   Hardware UART: UART0
[13:45:26.490][C][logger:332]:   Task Log Buffer Size: 768 bytes
[13:45:26.490][C][i2c.idf:093]: I2C Bus:
[13:45:26.491][C][i2c.idf:094]:   SDA Pin: GPIO22
[13:45:26.491][C][i2c.idf:094]:   SCL Pin: GPIO23
[13:45:26.491][C][i2c.idf:094]:   Frequency: 100000 Hz
[13:45:26.491][C][i2c.idf:104]:   Recovery: bus successfully recovered
[13:45:26.491][C][i2c.idf:114]: Results from bus scan:
[13:45:26.491][C][i2c.idf:120]: Found device at address 0x38
[13:45:26.491][C][pulse_counter:016]: Pulse Counter 'Liter pro minute'
[13:45:26.491][C][pulse_counter:016]:   State Class: 'measurement'
[13:45:26.491][C][pulse_counter:016]:   Unit of Measurement: 'L/min'
[13:45:26.491][C][pulse_counter:016]:   Accuracy Decimals: 2
[13:45:26.492][C][pulse_counter:026]:   Device Class: 'volume_flow_rate'
[13:45:26.492][C][pulse_counter:030]:   Icon: 'mdi:pulse'
[13:45:26.499][C][pulse_counter:152]:   Pin: GPIO21
[13:45:26.505][C][pulse_counter:175]:   Rising Edge: INCREMENT
[13:45:26.505][C][pulse_counter:175]:   Falling Edge: DISABLE
[13:45:26.505][C][pulse_counter:175]:   Filtering pulses shorter than 13 µs
[13:45:26.510][C][pulse_counter:452]:   Update Interval: 10.0s
[13:45:26.520][C][integration:016]: Integration Sensor 'Pumpe m³'
[13:45:26.520][C][integration:016]:   State Class: 'total'
[13:45:26.520][C][integration:016]:   Unit of Measurement: 'm³'
[13:45:26.520][C][integration:016]:   Accuracy Decimals: 4
[13:45:26.523][C][integration:026]:   Device Class: 'water'
[13:45:26.530][C][integration:030]:   Icon: 'mdi:water'
[13:45:26.541][C][aht10:156]: AHT10:
[13:45:26.544][C][aht10:157]:   Address: 0x38
[13:45:26.553][E][aht10:159]: Communication failed
[13:45:26.562][C][aht10:016]:   Temperature 'Temperatur'
[13:45:26.562][C][aht10:016]:     State Class: 'measurement'
[13:45:26.562][C][aht10:016]:     Unit of Measurement: '°C'
[13:45:26.562][C][aht10:016]:     Accuracy Decimals: 2
[13:45:26.566][C][aht10:026]:     Device Class: 'temperature'
[13:45:26.566][C][aht10:016]:   Humidity 'Luftfeuchtigkeit'
[13:45:26.566][C][aht10:016]:     State Class: 'measurement'
[13:45:26.566][C][aht10:016]:     Unit of Measurement: '%'
[13:45:26.566][C][aht10:016]:     Accuracy Decimals: 2

Und was funktioniert jetzt nicht?

AHT10 wird nicht erkannt:

[18:28:00.191][C][aht10:156]: AHT10:
[18:28:00.194][C][aht10:157]:   Address: 0x38
[18:28:00.202][E][aht10:159]: Communication failed
[18:28:00.208][C][aht10:016]:   Temperature 'Temperatur'
[18:28:00.208][C][aht10:016]:     State Class: 'measurement'
[18:28:00.208][C][aht10:016]:     Unit of Measurement: '°C'
[18:28:00.208][C][aht10:016]:     Accuracy Decimals: 2
[18:28:00.211][C][aht10:026]:     Device Class: 'temperature'
[18:28:00.221][C][aht10:016]:   Humidity 'Luftfeuchtigkeit'
[18:28:00.221][C][aht10:016]:     State Class: 'measurement'
[18:28:00.221][C][aht10:016]:     Unit of Measurement: '%'
[18:28:00.221][C][aht10:016]:     Accuracy Decimals: 2
[18:28:00.231][C][aht10:026]:     Device Class: 'humidity'
[18:28:00.236][E][component:226]:   aht10.sensor is marked FAILED: unspecified

Danke für eure Hilfe, habe nun die Lösung gefunden mit variant: AHT20

  - platform: aht10
    variant: AHT20
    i2c_id: bus_a

He? Das war doch schon ewig so?

# AHT20 Temperature & Humidity Sensor/Compensation ENS160
  - platform: aht10
    variant: AHT20
    temperature:
      name: Temperature Calibration Sensor (AHT20)
      id: aht20_temp
Das minimum chip revision kann man so beheben.

esp32:
  board: esp32dev
  framework:
    type: esp-idf
    advanced:
      minimum_chip_revision: "3.1"

danke, habe ich auch schon entdeckt, man lernt immer dazu