esphome / issues

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

ENS160 requires one hour warmup each boot (should be 3min) #5355

Open jxmesw1 opened 10 months ago

jxmesw1 commented 10 months ago

The problem

According to the docs, the ENS160 eCO2/tVOC sensor requires a one-hour warmup the very first time it's powered up. For subsequent boots or restarts, it's three minutes before readings are available. However, I'm experiencing an issue whereby I have to wait a full hour for readings every time I reboot my ESP. This should be three minutes rather than an hour.

Which version of ESPHome has the issue?

2023.12.5

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.1.2

What platform are you using?

ESP8266

Board

NodeMCU

Component causing the issue

ENS160

Example YAML snippet

- platform: ens160
    eco2:
      name: "Lounge eCO2"
    tvoc:
      name: "Lounge TotalVOC"
    aqi:
      name: "Lounge AQI"
    update_interval: 30s
    address: 0x53
    compensation:
      temperature: "lounge_temp"
      humidity: "lounge_humi"

Anything in the logs that might be useful for us?

[14:26:08][VV][i2c.arduino:141]: 0x53 TX 20
[14:26:08][VV][i2c.arduino:117]: 0x53 RX 8B
[14:26:08][V][ens160:156]: Status: ENS160 STATAS bit    0x1
[14:26:08][V][ens160:158]: Status: ENS160 STATER bit    0x0
[14:26:08][V][ens160:160]: Status: ENS160 VALIDITY FLAG 0x02
[14:26:08][V][ens160:161]: Status: ENS160 NEWDAT bit    0x1
[14:26:08][V][ens160:163]: Status: ENS160 NEWGPR bit    0x1

Additional information

I sometimes see a message in the log saying something along the lines of "One hour warmup required..." although this is not always the case. I think this depends on when I look at the log, e.g. as soon as the ESP has booted

jxmesw1 commented 10 months ago

Update: this is the message I see when looking at the logs during the boot:

[I][ens160:179]: ENS160 readings unavailable - 1 hour startup required after first power on
stlnick2 commented 9 months ago

Same here. Any updates?

jxmesw1 commented 9 months ago

I’m glad I’m not the only one - I was starting to think it was a hardware-related issue.

When I get chance I’ll look at the source code and see if there’s anything obvious, although I’m not an expert in this area. I’ll let you know how I get on.


From: stlnick2 @.> Sent: Tuesday, February 6, 2024 9:56:41 PM To: esphome/issues @.> Cc: James Warner @.>; Author @.> Subject: Re: [esphome/issues] ENS160 requires one hour warmup each boot (should be 3min) (Issue #5355)

Same here. Any updates?

— Reply to this email directly, view it on GitHubhttps://github.com/esphome/issues/issues/5355#issuecomment-1930817442, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5ACMRJKMH3LPXTUGQAGL63YSKRJTAVCNFSM6AAAAABBTGG7OCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZQHAYTONBUGI. You are receiving this because you authored the thread.Message ID: @.***>

Komzpa commented 8 months ago

[Rumor] While trying to resolve the issue with 0 readings, I read somewhere that the sensor writes to permanent memory only once 24h. So if you started it, went through the warmup, you need to keep it running for 23 more hours to store that calibration. [/Rumor]

jxmesw1 commented 8 months ago

@Komzpa That makes sense. It's been, well, a long time since I've installed the sensor and I haven't had to reboot it, but I did just now and only 3 minutes were needed before readings.

So I assume it needs to be running for 24 hours before the 3min boots are available, like you said. If so, we could close this issue

Thankyou

Remboooo commented 3 months ago

It's not just a rumour, it's in the datasheet: Screenshot_20240728-112837