Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AHT10 bug fix and changes in ESPHome 2024.3.1 (released on 27th of March 2024) #14

Open
Hedda opened this issue Mar 28, 2024 · 5 comments

Comments

@Hedda
Copy link
Contributor

Hedda commented Mar 28, 2024

FYI, there was a bug fix for AHT10 inside ESPHome 2024.3.1 (released on 27th of March 2024)

https://esphome.io/changelog/2024.3.0.html#release-2024-3-1-march-27

esphome/esphome#6409

Also a couple of changes to AHT10 in ESPHome 2024.3.0 release:

https://esphome.io/changelog/2024.3.0.html

esphome/esphome#6401

esphome/esphome#6303

@luar123
Copy link
Owner

luar123 commented Mar 28, 2024

Logger fix is not included in 2024.03.1

@lboue
Copy link
Contributor

lboue commented Mar 29, 2024

@Hedda
What logs do you get in debug mode?

I just tried ESPHome firmware 2024.3.1 with ESP32-S3-WROOM-1-N16R8 with a AHT20 sensor and it works:

I will use this sensor with ESP32-C6 board and Zigbee.

[09:31:55][I][app:102]: ESPHome version 2024.3.1 compiled on Mar 29 2024, 09:27:36
...
[09:31:55][C][logger:166]: Logger:
[09:31:55][C][logger:167]:   Level: DEBUG
[09:31:55][C][logger:169]:   Log Baud Rate: 115200
[09:31:55][C][logger:170]:   Hardware UART: USB_CDC
[09:31:55][C][i2c.arduino:059]: I2C Bus:
[09:31:55][C][i2c.arduino:060]:   SDA Pin: GPIO41
[09:31:55][C][i2c.arduino:061]:   SCL Pin: GPIO39
[09:31:55][C][i2c.arduino:062]:   Frequency: 50000 Hz
[09:31:55][C][i2c.arduino:065]:   Recovery: bus successfully recovered
[09:31:55][I][i2c.arduino:075]: Results from i2c bus scan:
[09:31:55][I][i2c.arduino:081]: Found i2c device at address 0x38
[09:31:55][I][i2c.arduino:081]: Found i2c device at address 0x77
[09:31:55][C][light:103]: Light 'RGB LED'
[09:31:55][C][light:105]:   Default Transition Length: 1.0s
[09:31:55][C][light:106]:   Gamma Correct: 2.80
[09:31:55][C][aht10:163]: AHT10:
[09:31:55][C][aht10:164]:   Address: 0x38
[09:31:55][C][aht10:168]:   Temperature 'AHT20 Temperature'
[09:31:55][C][aht10:168]:     Device Class: 'temperature'
[09:31:55][C][aht10:168]:     State Class: 'measurement'
[09:31:55][C][aht10:168]:     Unit of Measurement: '°C'
[09:31:55][C][aht10:168]:     Accuracy Decimals: 2
[09:31:55][C][aht10:169]:   Humidity 'AHT20 Humidity'
[09:31:55][C][aht10:169]:     Device Class: 'humidity'
[09:31:55][C][aht10:169]:     State Class: 'measurement'
[09:31:55][C][aht10:169]:     Unit of Measurement: '%'
[09:31:55][C][aht10:169]:     Accuracy Decimals: 2
[09:31:55][C][internal_temperature:059]: Internal Temperature Sensor 'ESP32 Temperature'
[09:31:55][C][internal_temperature:059]:   Device Class: 'temperature'
[09:31:55][C][internal_temperature:059]:   State Class: 'measurement'
[09:31:55][C][internal_temperature:059]:   Unit of Measurement: '°C'
[09:31:55][C][internal_temperature:059]:   Accuracy Decimals: 1
[09:31:55][C][bmp280.sensor:124]: BMP280:
[09:31:55][C][bmp280.sensor:125]:   Address: 0x77
[09:31:55][C][bmp280.sensor:137]:   IIR Filter: OFF
[09:31:55][C][bmp280.sensor:138]:   Update Interval: 60.0s
[09:31:55][C][bmp280.sensor:140]:   Temperature 'BMP280 Temperature'
[09:31:55][C][bmp280.sensor:140]:     Device Class: 'temperature'
[09:31:55][C][bmp280.sensor:140]:     State Class: 'measurement'
[09:31:55][C][bmp280.sensor:140]:     Unit of Measurement: '°C'
[09:31:55][C][bmp280.sensor:140]:     Accuracy Decimals: 1
[09:31:55][C][bmp280.sensor:141]:     Oversampling: 16x
[09:31:55][C][bmp280.sensor:142]:   Pressure 'BMP280 Pressure'
[09:31:55][C][bmp280.sensor:142]:     Device Class: 'pressure'
[09:31:55][C][bmp280.sensor:142]:     State Class: 'measurement'
[09:31:55][C][bmp280.sensor:142]:     Unit of Measurement: 'hPa'
[09:31:55][C][bmp280.sensor:142]:     Accuracy Decimals: 1
[09:31:55][C][bmp280.sensor:143]:     Oversampling: 16x

image

@lboue
Copy link
Contributor

lboue commented Apr 5, 2024

Setting up AHT20 with ESP32-H2 works too:

image

image

INFO Successfully uploaded program.
INFO Starting log output from /dev/ttyACM0 with baud rate 115200
[21:38:51]\xf8\xf8\xf8\xf8x\x80\xf8\xf8\x80\xf8\x80\x80\x80\x80\x80x\xf8x\x80\x80x\x80x\x80\x80\x80\xf8\x80\x80xx\x80\x80x\xf8x\xf8x\xf8x\xf8\x80\x80xx\x80xxxxx\x80xx\xf8[0m
[21:38:51]I (24) boot: compile time Apr  5 2024 21:37:20
[21:38:51]I (25) boot: chip revision: v0.1
[21:38:51]I (26) boot.esp32h2: SPI Speed      : 64MHz
[21:38:51]I (31) boot.esp32h2: SPI Mode       : DIO
[21:38:51]I (36) boot.esp32h2: SPI Flash Size : 4MB
[21:38:51]I (41) boot: Enabling RNG early entropy source...
[21:38:51]I (46) boot: Partition Table:
[21:38:51]I (50) boot: ## Label            Usage          Type ST Offset   Length
[21:38:51]I (57) boot:  0 otadata          OTA data         01 00 00009000 00002000
[21:38:51]I (64) boot:  1 phy_init         RF data          01 01 0000b000 00001000
[21:38:51]I (72) boot:  2 app0             OTA app          00 10 00010000 001b0000
[21:38:51]I (79) boot:  3 app1             OTA app          00 11 001c0000 001b0000
[21:38:51]I (87) boot:  4 nvs              WiFi data        01 02 00370000 0006d000
[21:38:51]I (94) boot:  5 zb_storage       Unknown data     01 81 003dd000 00004000
[21:38:51]I (102) boot:  6 zb_fct           Unknown data     01 81 003e1000 00000400
[21:38:51]I (110) boot: End of partition table
[21:38:51]I (114) boot: No factory image, trying OTA 0
[21:38:51]I (119) esp_image: segment 0: paddr=00010020 vaddr=42070020 size=11cf8h ( 72952) map
[21:38:51]I (150) esp_image: segment 1: paddr=00021d20 vaddr=40800000 size=0c3f4h ( 50164) load
[21:38:51]I (167) esp_image: segment 2: paddr=0002e11c vaddr=00000000 size=01efch (  7932) 
[21:38:51]I (171) esp_image: segment 3: paddr=00030020 vaddr=42000020 size=6c848h (444488) map
[21:38:51]I (311) boot: Loaded app from partition at offset 0x10000
[21:38:51]I (332) boot: Set actual ota_seq=1 in otadata[0]
[21:38:51]I (333) boot: Disabling RNG early entropy source...
[21:38:51]I (343) cpu_start: Unicore app
[21:38:51]I (344) cpu_start: Pro cpu up.
[21:38:51]W (353) clk: esp_perip_clk_init() has not been implemented yet
[21:38:51]I (359) cpu_start: Pro cpu start user code
[21:38:51]I (360) cpu_start: cpu freq: 96000000 Hz
[21:38:51]I (360) cpu_start: Application information:
[21:38:51]I (362) cpu_start: Project name:     zb-sensor
[21:38:51]I (367) cpu_start: App version:      2024.4.0-dev
[21:38:51]I (373) cpu_start: Compile time:     Apr  5 2024 21:35:21
[21:38:51]I (379) cpu_start: ELF file SHA256:  5aff87ecbf58e88f...
[21:38:51]I (385) cpu_start: ESP-IDF:          5.1.2
[21:38:51]I (390) cpu_start: Min chip rev:     v0.0
[21:38:51]I (394) cpu_start: Max chip rev:     v0.99 
[21:38:51]I (399) cpu_start: Chip rev:         v0.1
[21:38:51]I (404) heap_init: Initializing. RAM available for dynamic allocation:
[21:38:51]I (411) heap_init: At 40815290 len 000380F0 (224 KiB): D/IRAM
[21:38:51]I (417) heap_init: At 4084D380 len 00002B60 (10 KiB): STACK/DIRAM
[21:38:51]I (425) spi_flash: detected chip: generic
[21:38:51]I (429) spi_flash: flash io: dio
[21:38:51]I (433) sleep: Configure to isolate all GPIO pins in sleep state
[21:38:51]I (440) sleep: Enable automatic switching of GPIO sleep configuration
[21:38:51]I (447) app_start: Starting scheduler on CPU0
[21:38:51]I (452) main_task: Started on CPU0
[21:38:51]I (456) main_task: Calling app_main()
[21:38:52]I (611) main_task: Returned from app_main()
[21:38:52][I][logger:158]: Log initialized
[21:38:52][W][app:022]: Component custom_component already registered! (0x4081be74)
[21:38:52][I][app:029]: Running through setup()...
[21:38:52][C][i2c.idf:017]: Setting up I2C bus...
[21:38:52][I][i2c.idf:233]: Performing I2C bus recovery
[21:38:52][D][esp-idf:000]: I (619) gpio: GPIO[4]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0 
[21:38:52]
[21:38:52][D][esp-idf:000]: I (629) gpio: GPIO[5]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0 
[21:38:52]
[21:38:52][C][aht10:046]: Setting up AHT20
[21:38:52][D][esp-idf:000]: I (719) phy: phy_version: 211,0, 5857fe5, Nov  1 2023, 11:31:09
[21:38:52]
[21:38:52][D][esp-idf:000]: I (720) phy: libbtbb version: ce629d6, Nov  1 2023, 11:31:19
[21:38:52]
[21:38:52][I][app:062]: setup() finished successfully!
[21:38:52][D][esp-idf:000]: I (732) ESP_ZB_ON_OFF_LIGHT: ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
[21:38:52]
[21:38:52][D][esp-idf:000]: I (733) ESP_ZB_ON_OFF_LIGHT: Zigbee stack initialized
[21:38:52]
[21:38:52][D][esp-idf:000]: I (740) ESP_ZB_ON_OFF_LIGHT: Start network steering
[21:38:52]
[21:38:52][I][app:102]: ESPHome version 2024.4.0-dev compiled on Apr  5 2024, 21:34:50
[21:38:52][C][logger:166]: Logger:
[21:38:52][C][logger:167]:   Level: DEBUG
[21:38:52][C][logger:169]:   Log Baud Rate: 115200
[21:38:52][C][logger:170]:   Hardware UART: UART0
[21:38:52][C][i2c.idf:061]: I2C Bus:
[21:38:52][C][i2c.idf:062]:   SDA Pin: GPIO5
[21:38:52][C][i2c.idf:063]:   SCL Pin: GPIO4
[21:38:52][C][i2c.idf:064]:   Frequency: 50000 Hz
[21:38:52][C][i2c.idf:067]:   Recovery: bus successfully recovered
[21:38:52][I][i2c.idf:077]: Results from i2c bus scan:
[21:38:52][I][i2c.idf:083]: Found i2c device at address 0x38
[21:38:52][I][i2c.idf:083]: Found i2c device at address 0x77
[21:38:52][D][sensor:093]: 'Living Room Temperature': Sending state 23.50788 °C with 2 decimals of accuracy
[21:38:52][D][sensor:093]: 'Living Room Humidity': Sending state 60.25801 % with 2 decimals of accuracy
[21:38:52][C][aht10:160]: AHT10:
[21:38:52][C][aht10:161]:   Address: 0x38
[21:38:52][C][aht10:165]:   Temperature 'Living Room Temperature'
[21:38:52][C][aht10:165]:     Device Class: 'temperature'
[21:38:52][C][aht10:165]:     State Class: 'measurement'
[21:38:52][C][aht10:165]:     Unit of Measurement: '°C'
[21:38:52][C][aht10:165]:     Accuracy Decimals: 2
[21:38:52][C][aht10:166]:   Humidity 'Living Room Humidity'
[21:38:52][C][aht10:166]:     Device Class: 'humidity'
[21:38:52][C][aht10:166]:     State Class: 'measurement'
[21:38:52][C][aht10:166]:     Unit of Measurement: '%'
[21:38:52][C][aht10:166]:     Accuracy Decimals: 2

@lboue
Copy link
Contributor

lboue commented Apr 6, 2024

Logger fix is not included in 2024.03.1

esphome 2024.3.2 is coming

@lboue
Copy link
Contributor

lboue commented Apr 10, 2024

ESPHome (beta): 2024.4.0b1 is out with a fix:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants