Hello, I’m trying to use my ESP to monitor temperature and humidity, but I can’t connect to sht3xd. Is there a problem with my code? Everything works fine from the Arduino IDE.
[18:26:00.344][I][i2c.arduino:099]: Results from bus scan:
[18:26:00.344][I][i2c.arduino:105]: Found device at address 0x40
[18:26:00.354][C][sht3xd:048]: SHT3xD:
[18:26:00.355][D][sht3xd:051]: Error reading serial number
[18:26:00.355][E][sht3xd:060]: Communication with SHT3xD failed!
[18:26:00.355][E][component:154]: sht3xd.sensor is marked FAILED: unspecified
esphome:
name: essai
friendly_name: essai
on_boot:
priority: 200
then:
- lambda: |-
delay(500);
esp8266:
board: esp01_1m
# Example configuration entry for ESP32
i2c:
sda: GPIO4
scl: GPIO5
scan: true
frequency: 800khz
id: bus_a
timeout: 10ms
sensor:
- platform: sht3xd
i2c_id: bus_a
temperature:
name: "Living Room Temperature"
humidity:
name: "Living Room Humidity"
address: 0x40
update_interval: 60s
heater_enabled: false
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "3NKfZUQ7skFrMfc8I+2qdC/0FIUEJX8uq6tHEVqaJV8="
ota:
- platform: esphome
password: "5993182d1721886c1f17f4a7f8a3c970"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Essai Fallback Hotspot"
password: "6NsbtmNemQBs"
captive_portal: