esphome / issues

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

Component htu21d.sensor set Warning flag: unspecified #5762

Closed Aculeasis closed 4 days ago

Aculeasis commented 2 weeks ago

The problem

After updating firmware from 2024.2.2 to 2024.4.2, I started receiving these warnings from all my HTU21 sensors. The sensors work fine.

Which version of ESPHome has the issue?

2024.4.2

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?

ESP8266

Board

ESP8266, ESP32

Component causing the issue

htu21d

Example YAML snippet

i2c:
  sda: 17
  scl: 16

sensor:
  - platform: htu21d
    temperature:
      name: "${friendly_name} Temperature"
    humidity:
      name: "${friendly_name} Humidity"

Anything in the logs that might be useful for us?

[10:14:01][D][htu21d:058]: Got Temperature=39.1°C
[10:14:01][D][sensor:094]: 'BLE Gateway 3 Temperature': Sending state 39.10094 °C with 1 decimals of accuracy
[10:14:01][W][component:157]: Component htu21d.sensor set Warning flag: unspecified
[10:14:01][D][htu21d:081]: Got Humidity=5.2% Heater Level=0
[10:14:01][D][sensor:094]: 'BLE Gateway 3 Humidity': Sending state 5.24573 % with 1 decimals of accuracy
[10:14:01][W][component:170]: Component htu21d.sensor cleared Warning flag

Additional information

No response

sbrk-r commented 2 weeks ago

There's been changes to add heater support for relatives it looks like, and added submodels. Looks like it should default to real htu21d with no heater level support.

All instances of setting warnings seem to be I2C read or write that fail (could be no ACK, timeout, etc).

https://github.com/esphome/esphome/pull/6511 @MRemy2 any ideas?

alexruffell commented 1 week ago

Same here:

[08:06:59][D][htu21d:058]: Got Temperature=24.8°C
[08:06:59][W][component:157]: Component htu21d.sensor set Warning flag: unspecified
[08:06:59][D][htu21d:081]: Got Humidity=76.7% Heater Level=0
[08:06:59][W][component:170]: Component htu21d.sensor cleared Warning flag
[08:07:59][D][htu21d:058]: Got Temperature=24.8°C
[08:07:59][W][component:157]: Component htu21d.sensor set Warning flag: unspecified
[08:07:59][D][htu21d:081]: Got Humidity=76.8% Heater Level=0
[08:07:59][W][component:170]: Component htu21d.sensor cleared Warning flag
[08:08:59][D][htu21d:058]: Got Temperature=24.8°C
[08:08:59][W][component:157]: Component htu21d.sensor set Warning flag: unspecified
[08:08:59][D][htu21d:081]: Got Humidity=76.8% Heater Level=0
[08:08:59][W][component:170]: Component htu21d.sensor cleared Warning flag

@sbrk-r I looked at the changes you mentioned but they do not appear to be live yet. The heater changes have been live for a while I did not have this issue, while the model changes do not seem to be live yet... however I am getting the warnings so there seems to be something else that changed. Ideas?

MRemy2 commented 1 week ago

There's been changes to add heater support for relatives it looks like, and added submodels. Looks like it should default to real htu21d with no heater level support.

All instances of setting warnings seem to be I2C read or write that fail (could be no ACK, timeout, etc).

esphome/esphome#6511 @MRemy2 any ideas?

I do have an ideea :) We should wait for the commit to make it to the release version with the models of the sensors. I have updated also to 2024.4.2 and see the messages.

As a quick fix you could add external components in the yaml file and include the dev branch for the htu21d sensor:

external_components:

Aculeasis commented 4 days ago

Yep, It has been fixed after update to 2024.5.0.