Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MH-z19 Preheating time #684

Open
Brookke opened this issue Apr 18, 2020 · 0 comments
Open

MH-z19 Preheating time #684

Brookke opened this issue Apr 18, 2020 · 0 comments

Comments

@Brookke
Copy link

Brookke commented Apr 18, 2020

Describe the problem you have/What new integration you would like

When the MH-Z19 sensor first starts up the first few sensor readings are erroneous and should not be recorded.

Reading the documentation for esphome it states that the setup() method should not block. Therefore what I am proposing is to store the time that the setup method was called and then comparing that to the current time inside the update() method. If it exceeds the threshold then the sensor reading is recorded, otherwise a “sensor is warming up” debug message is added to the logs.

Would this proposal be acceptable?

Please describe your use case for this integration and alternatives you've tried:

N/A

Additional context

Warmup time on other projects has been set to ~2mins

@Brookke Brookke changed the title MH-z19 preheating m MH-z19 Preheating time Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants