esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
408 stars 26 forks source link

Improving PMSX003 component #489

Closed guffy1234 closed 4 years ago

guffy1234 commented 4 years ago

hi

Yesterday I have tested my prototype of air quality station with pms7003 and found that PMSX003 reports data too frequently. As workaround i had added median and throttle filters. Also i have found that lifespan of the sensor in continuous mode isn't too large 8000h according this page https://www.b-io.info/posts/studies/dust_sensor/ and 3 yeas according an alibaba page https://www.alibaba.com/product-detail/PMS7003-plantower-high-quality-laser-pm2_60704594861.html

I saw this issue where you suggest to use genetic GPIO to enforce the module to sleep. https://github.com/esphome/feature-requests/issues/269

It's much better then nothing ) But i think that component could implement more sophisticated approach. As example it can use TX line to control the module with commands and turn it to passive mode. After switch to passive mode PMSX003 could be implemented as PolllingComponent and ask the sensor periadically (like mh-z19 does). Also it could enforce sleep mode or wake the device up via serial command. No need to use SET wire for this.

And, may be, it would be good to have ability to specify RESET pin to reset it on boot. Just for a case when firmware of PMS sensor hangs and you would reset it remotely by restart of the ESPHome device without turn off//on power.

close-issue-app[bot] commented 4 years ago

This feature request was auto-closed because the template was not filled out. The ESPHome developers invest lots of time to maintain this project, so please at least fill out the feature request template so that a bunch of standard questions don't need to be asked again each time. Thank you for taking the time to create this feature request.