feature-requests icon indicating copy to clipboard operation
feature-requests copied to clipboard

SPS30 Particulate Matter Sensor - implement idle mode

Open MatejBosansky opened this issue 2 years ago • 8 comments

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

I was able to successfully implement SPS30 Particulate Matter Sensor. https://esphome.io/components/sensor/sps30.html First point - the wiring diagram is incorrect. There is switched SEL and GND pin (see page 4). But since both must be connected to GND, it didn't cause issues so far.

The problem is: Measurement works fine. However I observed that fan inside is constantly spinning - I can feel vibrations inside sensor. I configured update_interval to 300s. According to documentation, fan should spin only during the measurement. In idle mode fan has to be turned off. https://sensirion.com/media/documents/188A2C3C/6166F165/Sensirion_Particulate_Matter_AppNotes_SPS30_Low_Power_Operation_D1.pdf

So it looks like sensor is constantly in measurement mode. This will definitively raise power consumption. I am not sure but this may also reduce the sensor lifetime that is currently rated on 8-10 years with non-constant measurement mode.

According to documentation is obvious that is good when fan is spinning some time (around 15-30s) before measurement is taken.

As a solution, would be good to be able define also time how long must fan run before measurement is taken (or multiple averaged measurements are taken). If update interval is 300s and measurement interval is 30s, then it will be in measurement mode 30s and rest 270s will be in idle mode with reduced consumption.

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

Additional context

MatejBosansky avatar Feb 23 '23 12:02 MatejBosansky

Agreed! Would love to see idle mode implemented

Edit: Also uses a lot of power when constantly running - would be better for battery savings without deep sleep!

PlantsThatsWhatsUp avatar Mar 08 '23 19:03 PlantsThatsWhatsUp

I agree as well. Indeed, this would increase the life of the SPS30 module as the fan has increased wear on it while doing essentialy nothing useful (for the end user), and won't make the 8-10 year lifespan claim in the datasheet in continuous measurement mode.

thomasvnl avatar Mar 29 '23 17:03 thomasvnl

Agreed !

Flamingo-tech avatar Apr 01 '23 18:04 Flamingo-tech

Yep, besides the lifespan it's noisy in continuous measurement... There is an ability to stop the measurement and start again when needed... Please implement... Thanks! :)

mkormout avatar Apr 13 '23 08:04 mkormout

https://github.com/esphome/feature-requests/issues/2385 any updates?

tiimsvk avatar Sep 11 '23 10:09 tiimsvk

Is it possible this could be implemented?

mabnz avatar Feb 26 '24 07:02 mabnz

test my own component. It works well for me on the weather station https://github.com/tiimsvk/SPS30-idle-mode

or SK CZ forum: https://www.homeassistant-cz.cz/viewtopic.php?p=12644&hilit=sps30

tiimsvk avatar Feb 26 '24 07:02 tiimsvk

@tiimsvk Can you submit as a PR so that it can be implemented?

DR-PLANTECHSTEIN avatar Mar 18 '24 22:03 DR-PLANTECHSTEIN