esphome / feature-requests

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

Improving PMSX003 component to include all sensor readings (Concentration Units (environmental) & Particles per 0.1L air #1201

Closed genestealer closed 2 years ago

genestealer commented 3 years ago

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

Improving PMSX003 component to output all possible sensor readings. Currently the available sensors are limited to PMx concentrations. However many of the sensors in that range, such as the PMSX003_TYPE_5003ST (PMSX5003ST), also output:

This information is available in additional bytes of the incoming data stream and just needs to be captured in theget_16_bituint(xx) pmsx003.cpp

Linked to a copy of the data sheet: plantower-pms5003-manual_v2-3.pdf which details the data stream.

Code example from adafruit: https://github.com/adafruit/Adafruit_PM25AQI

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

Unable captured additional data streams already present.

Additional context

component: sensor.psmx003 integration: psmx003

genestealer commented 3 years ago

Looks like someone is looking into this already: https://github.com/esphome/esphome/pull/1694

warthog9 commented 3 years ago

Yeah, this has been chugging along for me for a bit without any issue, happy to answer any more questions or fix things if they are needed

genestealer commented 3 years ago

Integrated via https://github.com/esphome/esphome/pull/1694