I've often wanted to figure out a way to automatically turn on my laundry room vent fan when the cats use the litter box (it is in the laundry room, obviously).
Don't really want to mess with finely tuned motion sensors, or pressure sensors under the boxes.
So I picked up an air quality sensor (measures PM1, 2.5, 10), hooked it to an ESP8266, pumped the data to MQTT/Grafana and am going to trend it for a while and see if I can see correlation.
Might not work. Probably won't work. But it gave me something to do for a few minutes.
(side note - I can definitely detect when the dryer is running with it... lol... Litter box is TBD...)
You are too constrained in your thinking. What you need is a Litter Robot 3 Connect. Dominic Meglio (@dman2306) ported Nathan Spencer’s SmartThings integration, and it works well. The Litter Robot has a litter drawer into which all the poop and clumped pee is dumped, and it is sealed to keep all the odor in. The cats love it because their litter is always clean. You just have to change the litter bag every few days when it tells you it is full. It’s a real engineering marvel. It will change your life.
What kind of litter do you use? What you may see with an air quality sensor is an increase in fine litter dust. Another option would be to do this with a VOC sensor (like a BME680) instead of an air quality sensor.
Cat urine has volatiles in there - like felinine and a few mercaptans. And heaven knows that cat poo has all sorts of volatiles - mercaptans and indoles. I know that a BME680 can pick up indoles. And I would be surprised if it didn't also pick up mercaptans.
Well, PM for litter box detection isn't looking good. Sometimes it registers, but often does not. I'm sure if I put the sensor RIGHT next to the litterbox it may work, but the cats would destroy it in days or it would get so dust covered it may not read long.
I have a BME680 in place now, I'll see if that works any better in the location I have it mounted at... If not, it was a fun $15 diversion.
BME680 didn't work reliably enough. It would peak after litter box use, but it would also drift around a lot due to general environmental changes. So it was tough, but not impossible, to use for this purpose. Would probably have to do it on Rate of Change, not any fixed trigger value.
After moving the PMS5003 closer to the litter boxes, it seems to be the winner. Triggering the room exhaust fan @ PM10=25 has worked pretty reliably without false alarms. Maybe it misses some events, but every time I've checked, it ran. So I'm calling this done/success.
I trigger the room vent fan on PM10 >= 20 to reduce 'false alarms'. It probably misses some events with the setting that high, but seems to work well enough.