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

Add support for Plantower PMSx003T AQI models with temperature and humidity #16971

Merged
merged 3 commits into from
Nov 10, 2022

Conversation

thomashargrove
Copy link
Contributor

@thomashargrove thomashargrove commented Oct 31, 2022

Description:

Plantower makes a variant of the PMSx003 modules with a T suffix that will report temperature and humidity. They keep the same protocol but just repurpose the last two integers (particles_50um and particles_100um become temperature and humidity). Tested it on my esp8266 and esp32 both with and without PMS_MODEL_PMS5003T defined and all looks good:

image

and console:

11:53:07.492 CMD: status 8
11:53:07.503 MQT: stat/HargroveBellevue_Office_Aqi/STATUS8 = {"StatusSNS":{"Time":"2022-10-31T11:53:07","PMS5003":{"CF1":5,"CF2.5":8,"CF10":8,"PM1":5,"PM2.5":8,"PM10":8,"PB0.3":996,"PB0.5":264,"PB1":59,"PB2.5":2,"Temperature":69.6,"Humidity":46.9},"TempUnit":"F"}}

Related issue (if applicable): fixes #

Checklist:

  • The pull request is done against the latest development branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works with Tasmota core ESP8266 V.2.7.4.9
  • The code change is tested and works with Tasmota core ESP32 V.2.0.5
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

@thomashargrove thomashargrove changed the title Pmsx003t Add support for Plantower Pmsx003t AQI models with temperature and humidity Oct 31, 2022
@thomashargrove thomashargrove changed the title Add support for Plantower Pmsx003t AQI models with temperature and humidity Add support for Plantower PMSx003T AQI models with temperature and humidity Oct 31, 2022
@thomashargrove
Copy link
Contributor Author

I tested the code on ESP32 and it works fine there as well

@thomashargrove
Copy link
Contributor Author

@arendst Anything else I need to do to get this PR reviewed?

@arendst arendst merged commit 41e44d0 into arendst:development Nov 10, 2022
@pornpasok
Copy link

How I config ESP32 PIN for PMSx003t?
Thanks,

@barbudor
Copy link
Contributor

barbudor commented Apr 3, 2023

Requires self compile with #define PMS_MODEL_PMS5003T

@plant-studio
Copy link

Would this also work with the PMS7003T and not just the PMS5003T? The PMS7003T can measure larger particle sizes (up to 25 μm) and has a slightly higher air throughput rate.

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

Successfully merging this pull request may close these issues.

5 participants