Describe the problem you have/What new integration you would like
The PMS5003 sensor has a 3.5yr life span according to the datasheet. It can be extended by either putting the sensor to sleep via a high level signal on pin 3 (Set) or by sending a sleep command via the UART. The command can be sent via the code pasted below however it is not officially supported, and thus braindead easy to do, and it gives a warning related to the response from the sensor being shorter than expected when the sleep mode is changed.
Please describe your use case for this integration and alternatives you've tried:
This code (see uart.write parts) adds the ability to put to sleep and awake the sensor:
[W][pmsx003:108]: PMSX003 length 4 doesn't match. Are you using the correct PMSX003 type?
The thread speculates that it is simply due to ESPHome expecting more data than is sent for this command given it only supports receiving measurement data.
Describe the problem you have/What new integration you would like
The PMS5003 sensor has a 3.5yr life span according to the datasheet. It can be extended by either putting the sensor to sleep via a high level signal on pin 3 (Set) or by sending a sleep command via the UART. The command can be sent via the code pasted below however it is not officially supported, and thus braindead easy to do, and it gives a warning related to the response from the sensor being shorter than expected when the sleep mode is changed.
Please describe your use case for this integration and alternatives you've tried:
This code (see
uart.write
parts) adds the ability to put to sleep and awake the sensor:While it works fine, there is a warning:
The thread speculates that it is simply due to ESPHome expecting more data than is sent for this command given it only supports receiving measurement data.
Source of code above: https://forum.airgradient.com/t/extending-the-life-span-of-the-pms5003-sensor/114/9
This post gives more insight on what data is sent back:
https://forum.airgradient.com/t/extending-the-life-span-of-the-pms5003-sensor/114/13
Additional context
The thread where I found the information in this FR is:
https://forum.airgradient.com/t/extending-the-life-span-of-the-pms5003-sensor/114
I claim absolutely no credits! I am only relaying this in hopes that someone will merge this into ESPHome for official support.