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

Need more assistance #7

Open
madebywitteveen opened this issue May 31, 2023 · 9 comments
Open

Need more assistance #7

madebywitteveen opened this issue May 31, 2023 · 9 comments

Comments

@madebywitteveen
Copy link

madebywitteveen commented May 31, 2023

Hi Koen,

Can you help me out please?
Created this folder config/esphome/common containing 4 yaml files: base, aqi, bme280 & mh-z19b.
in the yaml config for the ESP8266 the packages not used are # (out).
still getting al kinds of errors but can't find the issue.
When trying to transfer the configuration to the ESP:
Couldn't find ID 'pm2_5_value'
Couldn't find ID 'pm10_value'
Couldn't find ID 'show_calibrating'. Please check you have defined an ID with that name in your configuration. These IDs look similar: "co2_calibrate", "co2_calibrated"

I'm using the d1_mini wemos.

and more of those like that,

can you give me a hint please ?

thanks

H

@koenvervloesem
Copy link
Owner

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.

@madebywitteveen
Copy link
Author

madebywitteveen commented Jun 1, 2023

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

@koenvervloesem
Copy link
Owner

Calibration is done for 20 minutes:

@madebywitteveen
Copy link
Author

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_
_

@koenvervloesem
Copy link
Owner

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.

@madebywitteveen
Copy link
Author

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

@koenvervloesem
Copy link
Owner

koenvervloesem commented Jun 5, 2023

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?

@madebywitteveen
Copy link
Author

madebywitteveen commented Jun 5, 2023 via email

@koenvervloesem
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants