esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
291 stars 34 forks source link

RP2040 SI7021 DHT not measuring after upgrade to 2024.6.1 #5958

Open arnasDan opened 1 week ago

arnasDan commented 1 week ago

The problem

I upgraded ESPHome from 2024.2 to 2024.6 for a Pico W with the Sonoff SI7021 sensor. Measurement always fails after the upgrade; after a rollback to 2024.2, it works fine again. It seems likely to be related to https://github.com/esphome/esphome/pull/6604, which altered the timings used for this sensor. It appears that the old configuration is valid for the RP2040 as well (not just the ESP8266, as implemented).

Which version of ESPHome has the issue?

2024.6.1

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

No response

What platform are you using?

RP2040

Board

rpipicow

Component causing the issue

dht

Example YAML snippet

sensor:
  - platform: dht
    pin: GPIO5
    temperature:
      name: "Temperature"
      id: rpicow_temp
    humidity:
      name: "Humidity"
      id: rpicow_humidity
      accuracy_decimals: 1
    update_interval: 30s
    model: SI7021

Anything in the logs that might be useful for us?

[21:03:16][W][dht:169]: Requesting data from DHT failed!
[21:03:16][W][dht:060]: Invalid readings! Please check your wiring (pull-up resistor, pin number).

Additional information

No response

emefff commented 1 week ago

Hello, did you try to address the SI7021 via HTU21D component? Maybe that works: https://esphome.io/components/sensor/htu21d.html

arnasDan commented 1 week ago

The HTU21D component interfaces with the SI7021 chip directly and uses I²C, while the Sonoff device that I have only exposes a one wire signal, so that's unfortunately not an option unless I modify the board :)

emefff commented 1 week ago

Ah ok, didn't know that.