I have a weird problem. I had a hardware setup with an ESP8266-d1(Lolin) + SHT3X + BME280 + CCS811 connected via I2C.
I had the ESP8266 programmed with Arduino and used MQTT to send sensor input to HA, which worked nicely.
Now I started using ESPHOME and I can very easy make a configuration that does the same (Read sensors every 30. second). However as soon as the SHT3X is a part of the configuration, then the ESP cant find the WIFI network.
If I only configure the SHT3X, then it works fine. If I only configure the BME280 and the CCS811, then it works fine. But if I combine the SHT3X with either the BME280 or the CCS811, then the ESP cant fint the wifi and looses connection to ESPHOME.
I tried external power, capacitor on the supply, different wiring. And the exact same setup works fine in Arduino.
Any ideas?
Update:
It doesn’t matter whether the SHT3X is connected or not. It is enought to define a SHT3Xd sensor in ISPHOME, then the wifi doesnt find any networks.
Can you connect at the ESP by USB ? so you can check logs of ESP when it boots with problematic code for SHT ?
Please share also your yaml just in case
I normally connect via USB, because OTA update doesnt work without Wifi.
Output with SHT3X coonfigured (No Wifi working)
[D][wifi:425]: Starting scan…
[D][ccs811:091]: Status indicates no data ready!
[D][sht3xd:060]: Got temperature=28.42°C humidity=57.57%
[D][sensor:093]: ‘Living Room Temperature’: Sending state 28.42069 °C with 1 decimals of accuracy
[D][sensor:093]: ‘Living Room Humidity’: Sending state 57.57076 % with 1 decimals of accuracy
[D][sensor:093]: ‘BME280 Temperature’: Sending state 27.70000 °C with 1 decimals of accuracy
[D][sensor:093]: ‘BME280 Pressure’: Sending state 1014.75342 hPa with 1 decimals of accuracy
[D][sensor:093]: ‘BME280 Humidity’: Sending state 53.24316 % with 1 decimals of accuracy
[D][wifi:440]: Found networks:
[D][wifi:442]: No network found!
[D][sht3xd:060]: Got temperature=28.45°C humidity=56.22%
[D][sensor:093]: ‘Living Room Temperature’: Sending state 28.45007 °C with 1 decimals of accuracy
[D][sensor:093]: ‘Living Room Humidity’: Sending state 56.21729 % with 1 decimals of accuracy
[D][wifi:425]: Starting scan…
[D][wifi:440]: Found networks:
[D][wifi:442]: No network found!
[D][sensor:093]: ‘BME280 Temperature’: Sending state 27.69000 °C with 1 decimals of accuracy
[D][sensor:093]: ‘BME280 Pressure’: Sending state 1014.73560 hPa with 1 decimals of accuracy
[D][sensor:093]: ‘BME280 Humidity’: Sending state 52.13672 % with 1 decimals of accuracy
[D][ccs811:091]: Status indicates no data ready!
[D][wifi:425]: Starting scan…
[D][sht3xd:060]: Got temperature=28.46°C humidity=57.50%
[D][sensor:093]: ‘Living Room Temperature’: Sending state 28.46342 °C with 1 decimals of accuracy
[D][sensor:093]: ‘Living Room Humidity’: Sending state 57.50210 % with 1 decimals of accuracy
In my logs I can see I2C scan find the sensor. So I can see this which tells me the SHT31(0x44) has been found. If you are not getting that close then wiring and power to check
It does find the sensor when scanning. But as I said, the sensor doesn’t even have to be physically connected. It is enough that I configure it, so that the shr3xd library is loaded. Then it doesn’t work.
And the same physical setup works great with my own arduino scetch.