Just following up: I have since received my AHT20 in the mail and hooked it up. aht10 for “-platform:” in ESPHome seems to work fine for the AHT20. My AHT20 is a stand alone one from adafruit. Works great!
Yes, that is correct, I was also using aht10 as platform. It is not written, but looks like it is working with the aht20 sensor as well. Here is the yaml what I was using:
an here the log ouput:
[22:40:42][C][bmp280.sensor:098]: BMP280:
[22:40:42][C][bmp280.sensor:099]: Address: 0x38
[22:40:42][E][bmp280.sensor:105]: BMP280 has wrong chip ID! Is it a BME280?
[22:40:42][C][bmp280.sensor:111]: IIR Filter: OFF
[22:40:42][C][bmp280.sensor:112]: Update Interval: 60.0s
[22:40:42][C][bmp280.sensor:115]: Oversampling: 16x
[22:40:42][C][bmp280.sensor:116]: Pressure ‘Test Pressure’
[22:40:42][C][bmp280.sensor:116]: Device Class: ‘pressure’
[22:40:42][C][bmp280.sensor:116]: State Class: ‘measurement’
[22:40:42][C][bmp280.sensor:116]: Unit of Measurement: ‘hPa’
[22:40:42][C][bmp280.sensor:116]: Accuracy Decimals: 1
[22:40:42][C][bmp280.sensor:117]: Oversampling: 16x
Did you (or anybody else) get the BMP280 working? I also bought this board and I’m having the same problem. I created another community.home-assistant post about this issue, but do the forum rules prevent me from posting a link to it here?
Thank you for sharing your code. I have an interesting behaviour where the AHT is only reporting values every third measurement and reporting that it takes too long. is this intended ?
[15:09:23][W][component:214]: Component aht10.sensor took a long time for an operation (0.07 s).
[15:09:23][W][component:215]: Components should block for at most 20-30ms.
[15:10:05][D][bmp280.sensor:175]: Got temperature=25.2°C pressure=935.4hPa
[15:10:05][D][sensor:093]: 'BMP temp': Sending state 25.19000 °C with 1 decimals of accuracy
[15:10:05][D][sensor:093]: 'BMP Pressure': Sending state 935.41656 hPa with 1 decimals of accuracy
[15:10:23][D][aht10:084]: AHT10 is busy, waiting...
[15:10:23][D][sensor:093]: 'AHT20 temp': Sending state 24.44916 °C with 1 decimals of accuracy
[15:10:23][D][sensor:093]: 'AHT20 humidity': Sending state 49.01505 % with 1 decimals of accuracy
[15:10:23][W][component:214]: Component aht10.sensor took a long time for an operation (0.08 s).
[15:10:23][W][component:215]: Components should block for at most 20-30ms.
[15:11:05][D][bmp280.sensor:175]: Got temperature=25.2°C pressure=935.4hPa
[15:11:05][D][sensor:093]: 'BMP temp': Sending state 25.18000 °C with 1 decimals of accuracy
[15:11:05][D][sensor:093]: 'BMP Pressure': Sending state 935.42114 hPa with 1 decimals of accuracy
[15:11:23][D][aht10:084]: AHT10 is busy, waiting...
[15:11:23][W][component:214]: Component aht10.sensor took a long time for an operation (0.07 s).
[15:11:23][W][component:215]: Components should block for at most 20-30ms.