esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 36 forks source link

AHT10 sensor measurements reading timed-out! #4804

Closed DamianHofy closed 10 months ago

DamianHofy commented 1 year ago

The problem

I spot simmilar issue like here https://github.com/esphome/issues/issues/1635 with newest version of ESPHome. Any hack from this thread works :(

tl;dr I cannot force AHT20 to get humi measurement

Which version of ESPHome has the issue?

2023.7.1

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2023.8.2

What platform are you using?

ESP8266

Board

nodemcu D1_mini LOLIN

Component causing the issue

AHT10

Example YAML snippet

esphome:
  name: "esp-garden-mini-pump"
  friendly_name: Garden mini pump

esp8266:
  board: nodemcuv2

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:

i2c:
  sda: 4
  scl: 5
  scan: true
  frequency: 200kHz
ota:
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "GMP"
    password: !secret fallback_hotspot_pass

captive_portal:

sensor:
  - platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
    name: "WiFi Signal dB"
    id: wifi_signal_db
    update_interval: 60s
    entity_category: "diagnostic"

  - platform: copy # Reports the WiFi signal strength in %
    source_id: wifi_signal_db
    name: "WiFi Signal Percent"
    filters:
      - lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
    unit_of_measurement: "Signal %"
    entity_category: "diagnostic"

  - platform: aht10
    address:  0x38 
    humidity:
      name: "Living Room Humidity"
    update_interval: 60s

Anything in the logs that might be useful for us?

[12:56:10][I][i2c.arduino:069]: Results from i2c bus scan:
[12:56:10][I][i2c.arduino:075]: Found i2c device at address 0x38
[12:56:10][I][i2c.arduino:075]: Found i2c device at address 0x77
[12:56:10][C][copy.sensor:015]: Copy Sensor 'WiFi Signal Percent'
[12:56:10][C][copy.sensor:015]:   Device Class: 'signal_strength'
[12:56:10][C][copy.sensor:015]:   State Class: 'measurement'
[12:56:10][C][copy.sensor:015]:   Unit of Measurement: 'Signal %'
[12:56:10][C][copy.sensor:015]:   Accuracy Decimals: 0
[12:56:10][C][aht10:136]: AHT10:
[12:56:10][C][aht10:137]:   Address: 0x38
[12:56:10][C][aht10:142]:   Humidity 'Living Room Humidity'
[12:56:10][C][aht10:142]:     Device Class: 'humidity'
[12:56:10][C][aht10:142]:     State Class: 'measurement'
[12:56:10][C][aht10:142]:     Unit of Measurement: '%'
[12:56:10][C][aht10:142]:     Accuracy Decimals: 2
[12:56:10][C][captive_portal:088]: Captive Portal:
[12:56:10][C][mdns:112]: mDNS:
[12:56:10][C][mdns:113]:   Hostname: esp-garden-mini-pump
[12:56:10][C][ota:093]: Over-The-Air Updates:
[12:56:10][C][ota:094]:   Address: esp-garden-mini-pump.local:8266
[12:56:10][C][api:138]: API Server:
[12:56:10][C][api:139]:   Address: esp-garden-mini-pump.local:6053
[12:56:10][C][api:141]:   Using noise encryption: YES
[12:56:10][C][wifi_signal.sensor:009]: WiFi Signal 'WiFi Signal dB'
[12:56:10][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[12:56:10][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[12:56:10][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[12:56:10][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[12:56:49][D][sensor:093]: 'WiFi Signal dB': Sending state -34.00000 dBm with 0 decimals of accuracy
[12:56:49][D][sensor:093]: 'WiFi Signal Percent': Sending state 100.00000 Signal % with 0 decimals of accuracy
[12:56:50][D][aht10:090]: ATH10 Unrealistic humidity (0x0), retrying...
[12:56:50][D][aht10:078]: Communication with AHT10 failed, waiting...
[12:56:50][D][aht10:078]: Communication with AHT10 failed, waiting...
[12:56:50][E][aht10:105]: Measurements reading timed-out!

Additional information

No response

github-actions[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.