Code Monkey home page Code Monkey logo

Comments (9)

koenvervloesem avatar koenvervloesem commented on May 27, 2024

It's best to copy all YAML files from the common directory. For instance, the errors about the pm values are because these are defined in the sds011.yaml file.

from esphome-air-quality-monitor.

madebywitteveen avatar madebywitteveen commented on May 27, 2024

Thanks Koen, that helped.
It is working (I think ) set it to calibrate, see what happens tomorrow
What is the calibration time roughly ?
best regards,
H

from esphome-air-quality-monitor.

koenvervloesem avatar koenvervloesem commented on May 27, 2024

Calibration is done for 20 minutes:

from esphome-air-quality-monitor.

madebywitteveen avatar madebywitteveen commented on May 27, 2024

Hi Koen,
Can't get it working; The code reverts back to different yaml than the one is uploaded?! Can't figure out why this is happening:

1: create a new ESPHOME device with the code what's in here : koenvervloesem/ESPHome-Air-Quality-Monitor/esphome-air-quality-monitor-esp8266.yaml.
2: made some adjustments to this code for logging and WIFI
3: upload this yaml to the 8266
4: device is not getting online
5: ESPhome detects a new device !
6: Click adopt to add this new one to ESPhome
7: After adopt and install the device is online but the yaml code is different ?!
8: yaml code is now (below):
9: this isn;t working because the pin declarations in the online version are different than my esp
10: how to stick with the yaml I uploaded first ??

_substitutions:
name: esphome-airquality-c00b8d
friendly_name: AIRQUALITY c00b8d
packages:
koenvervloesem.air-quality-monitor: github://koenvervloesem/ESPHome-Air-Quality-Monitor/esphome-air-quality-monitor-esp8266.yaml@main
esphome:
name: ${name}
name_add_mac_suffix: false
friendly_name: ${friendly_name}
api:
encryption:
key: "......blablabla......"

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password_
_

from esphome-air-quality-monitor.

koenvervloesem avatar koenvervloesem commented on May 27, 2024

I'm not sure what is going wrong.

If you have exactly the same configuration as in the table, with an MH-Z19B connected to the ESP8266, then you could try the web-based firmware installer for this project. This requires Chrome or Edge.

from esphome-air-quality-monitor.

madebywitteveen avatar madebywitteveen commented on May 27, 2024

Thanks,

I'm using the d1_mini thus the pinout is different.
Could you do me a favor ?
Can you write me a yaml for d1_mini containing only the code for the mhz19b without the packages?

Also getting this error:

You're_ using the same serial port for logging and the UART component. Please disable logging over the serial port by setting logger->baud_rate to 0

But I can't disable the logging because improv serial needs it

can I buy you a coffee ?

thanks

H

from esphome-air-quality-monitor.

koenvervloesem avatar koenvervloesem commented on May 27, 2024

Now that I'm reading your previous message again, I think what's happening is that you changed the esphome-air-quality-monitor-esp8266.yaml file with the pinout of your D1 mini, right? But you kept these two lines with the dashboard import:

dashboard_import:
  package_import_url: github://koenvervloesem/ESPHome-Air-Quality-Monitor/esphome-air-quality-monitor-esp8266.yaml@main

So that's why the code reverts back to the one for the NodeMCU. So if you delete those two lines in your YAML file, I expect that you're closer to a solution :-) Can you give this a try?

from esphome-air-quality-monitor.

madebywitteveen avatar madebywitteveen commented on May 27, 2024

from esphome-air-quality-monitor.

koenvervloesem avatar koenvervloesem commented on May 27, 2024

Oh it's just that I had one of those NodeMCU boards at hand, so yes that was a coincidence.

from esphome-air-quality-monitor.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.