I have the ENV IV unit from M5 which i want to connect to the M5DIal, when configured with scan true, the i2c bus reports the presence of 2 devices on address 0x76 and 0x44, but i do not get any readings. I have connected the ENV IV to port A.
[09:14:32][I][i2c.arduino:096]: Results from i2c bus scan:
[09:14:32][I][i2c.arduino:102]: Found i2c device at address 0x44
[09:14:32][I][i2c.arduino:102]: Found i2c device at address 0x76
The problem with the bmp280_i2c is that i get the error Platform not found: 'sensor.bmp280_i2c'. Just for trying i had used the bmp280 which does not work also, but at least it compiles.
I also tried to implement it like this
But then i get Invalid pin number: 42 (must be 0-23).esp32-s3-devkitc-1
If i leave out the bmp280 the sht40 does not work.
What am i doing wrong? What do i need to do to get this sensor to work?
First: update, i was on 2024.08 for esphome, now on 2024.10 and with that bmp280_i2c works
Second: The problem of the sensor not functioning persists
[09:40:23][E][bmp280.sensor:135]: Communication with BMP280 failed!
[09:40:23][C][bmp280.sensor:144]: IIR Filter: OFF
[09:40:23][C][bmp280.sensor:145]: Update Interval: 60.0s
[09:40:23][C][bmp280.sensor:147]: Temperature 'Temperature'
[09:40:23][C][bmp280.sensor:147]: Device Class: 'temperature'
[09:40:23][C][bmp280.sensor:147]: State Class: 'measurement'
[09:40:23][C][bmp280.sensor:147]: Unit of Measurement: '°C'
[09:40:23][C][bmp280.sensor:147]: Accuracy Decimals: 1
[09:40:23][C][bmp280.sensor:148]: Oversampling: 16x
[09:40:23][C][bmp280.sensor:149]: Pressure 'Pressure'
[09:40:23][C][bmp280.sensor:149]: Device Class: 'pressure'
[09:40:23][C][bmp280.sensor:149]: State Class: 'measurement'
[09:40:23][C][bmp280.sensor:149]: Unit of Measurement: 'hPa'
[09:40:23][C][bmp280.sensor:149]: Accuracy Decimals: 1
[09:40:23][C][bmp280.sensor:150]: Oversampling: 16x
[09:40:23][E][component:082]: Component bmp280_base is marked FAILED
Same for sht4x
[09:40:44][W][component:237]: Component sht4x.sensor took a long time for an operation (1000 ms).
[09:40:44][W][component:238]: Components should block for at most 30 ms.
[09:40:45][D][sht4x:080]: Sensor read failed
Another update, after removing all but the i2c bus configuration and the 2 sensors, esphome properly reports the sensor values. Now i have to build it up to see which component kills the sensors.
[13:21:52][D][sensor:094]: 'SHT Temperature': Sending state 21.52590 °C with 2 decimals of accuracy
[13:21:52][D][sensor:094]: 'Relative Humidity': Sending state 64.98497 % with 2 decimals of accuracy
[13:22:05][D][bmp280.sensor:182]: Got temperature=20.9°C pressure=1034.1hPa
[13:22:05][D][sensor:094]: 'Temperature': Sending state 20.89211 °C with 1 decimals of accuracy
[13:22:05][D][sensor:094]: 'Pressure': Sending state 1034.10229 hPa with 1 decimals of accuracy
There, i solved it. Here is the complete yaml. I should have used the esphome al along. I only needed to update the platform: pcf8563 with the correct i2c id