esphome / issues

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

RP2040 SI7021 DHT not measuring after upgrade to 2024.6.1 #5958

Open arnasDan opened 4 months ago

arnasDan commented 4 months 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 4 months ago

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

arnasDan commented 4 months 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 4 months ago

Ah ok, didn't know that.

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.