home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.16k stars 29.83k forks source link

Particulate matter sensor values altered by restarting #21099

Closed calculin2001 closed 4 years ago

calculin2001 commented 5 years ago

I still have de problem reported before here:

https://github.com/home-assistant/home-assistant/issues/14164 after restart values changes completely! witch ones are de corrects ones ????

first I think the problem is the sensor and try with a new one and persists! this is my config:

  - platform: serial_pm
    serial_device: /dev/ttyUSB0
    name: Air Quality
    brand: plantower,pms5003

in the image atched you can see exactly wen I restarted. So these sensors are useless until a solution pms5003

OttoWinter commented 5 years ago

AFAIK the pms5003 performs a self-calibration each time power is re-plugged (possibly also when serial interface is re-opened by use of the other uart pins).

So in that case the answer would be you have to find the true value yourself. A good way to calibrate is to get values from the government (in many countries air pollution measurements are mandatory and published online)

calculin2001 commented 5 years ago

Hi, sorry I do not want to look arrogant! But this sensor is a count meter and does not need calibration, the only calibration is already don in factory and it is in terms of the air flow of the fan for a correct calculation of the m3 of air. I am not an software engineer I am an electronic engineer and in my opinion, there is something wrong with reading the sensor. If you look at the data sheet of Plantower they explain very well the data transfer characteristics. For my part I have already looked for another way to measure with a microcontroller and it works correctly. I simply think that the correct thing is to inform the community because at the end homeassistant will has a lot of useless controllers for the people who want to use them and that measure any thing. a cordial greeting.

PD sorry my bad english

GuillermoSou commented 5 years ago

I think it help:

https://arduino.stackexchange.com/questions/47554/checksum-is-wrong-air-quality-monitoring-station-pms5003-bme280-code-review

good look

GuillermoSou commented 5 years ago

No solution for the issue? Calculin2001 can you help me? I am a beginner and I do not know what to do help...!

Snipercaine commented 5 years ago

Have you updated to 0.90? If not, try that. If you have updated, is this still a problem? Thanks -HA Github Issues Clean-up Crew

GuillermoSou commented 5 years ago

OK! I'll update tonigh. Thanks

GuillermoSou commented 5 years ago

Unfortunately I have to tell you that the failure continues happening after the update to 0.90.1

after restart values are still changing !

Captura de pantalla de 2019-03-24 20-29-49

stale[bot] commented 5 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

calculin2001 commented 5 years ago

Hola todavía no encontraron una solución?

stale[bot] commented 4 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

jfedor2 commented 2 years ago

I have encountered this problem as well and I believe it is caused by an issue within the pmsensor library. It was actually fixed years ago here:

https://github.com/open-homeautomation/pmsensor/commit/d9725edaf2f018b509375a5533b92c0b712b63cd

Unfortunately there has been no release of the library after that commit so Home Assistant is still using old code without the fix.

codingcatgirl commented 2 years ago

I can't believe that this is still an issues 2 years later. This still occurs to me. How can i fix this? Particulate matter sensors are completely useless in Home Assistant with this bug.