esphome / esphome/feature-requests
Support Sleeping for PMSX003 or warn about lack of sleep functionality.
- Dominant language
- No language data
- Stars
- 450
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the problem you have/What new integration you would like**
The PMSX003 sensors support a sleep mode.
Example implementation can be seen here:
https://github.com/SwapBap/PMS
Switching to polling every (user defined) X minutes, waking for Y seconds (to let the sensor warm up) and polling data before setting it back to sleep would allow the sensor to last much longer and make it more practical to use with esphome.
**Please describe your use case for this integration and alternatives you've tried:**
The lifetime of the sensor thanks to a moving fan, and the eventuality of filling with dust is shortened if it's not put to sleep between reads.
If not done this way, it should ideally be noted in the documentation that the current implementation will reduce the life expectancy of a somewhat expensive sensor.
**Additional context**
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the PMSX003 sensor integration in the ESPHome codebase and compare its behavior with the example implementation at https://github.com/SwapBap/PMS. Determine whether sleep support or a documentation warning is the intended outcome; done means one chosen behavior is implemented and verified for the sensor.
Written by the indexing model from the issue text.
Assessment
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100