Cigarette smoke sensor

That is the graph of smoking in the next room balcony, where the balcony door is open and i smoke 2-3 cigarettes. It might be a little sensitive i don’t know, especially the clearing of smoke values (I didn’t opened a windows in that sensor room) … Btw there was only a little smoke smell in that sensor room,no smoke itself. Just for your info on Xiaomi sensitivity on smoke.

UPDATE: Btw Youpin Smartmi PM 2.5 might be a cheaper alternative, although i have no idea if it works with HA…

UPDATE 2: It looks like it doesn’t have WiFi. Sorry, my bad…

Hi,
the sensor I’m using is the MQ135 - LINK
the tasmota firware can be customized with rules for triggering once the value changes abruptatly and thus reporting the value to HA
I’m using the sensor not for smoking , although I’m a smoker, i dont smoke inside the house.
I guess that Xiaomi sensor can be a diferent sensor, but the imediatly repoting to HA can be achieved with rules in the TASMOTA chip

I’m very interested in how you achieved this. I have smokers next door and would love to create notification to close windows, turn on the AC.

Any details on how you integrated into HA?

Is this the same model you used? I would be looking to get three of them.
https://www.aliexpress.com/item/1005004787853421.html?spm=a2g0o.productlist.main.1.5d97e424Js6Fym&algo_pvid=38268337-6697-4bda-b29c-5b028a252e25&algo_exp_id=38268337-6697-4bda-b29c-5b028a252e25-0&pdp_npi=4%40dis!AUD!61.98!42.76!!!40.25!27.77!%402103237317065695908118232e85be!12000032516841667!sea!AU!0!AB&curPageLogUid=AQEn5dGbYvoL&utparam-url=scene%3Asearch|query_from%3A

My version is this:
https://tr.aliexpress.com/item/1005003574894195.html?spm=a2g0o.productlist.main.3.39e23a57r1XRmo&algo_pvid=27f0c671-4f8b-4519-9895-91ff0e5791f9&algo_exp_id=27f0c671-4f8b-4519-9895-91ff0e5791f9-1&pdp_npi=4%40dis%21TRY%213130.14%211784.28%21%21%2197.17%2155.39%21%402101e64117065964274764142e1890%2112000026341878742%21sea%21TR%21699815584%21&curPageLogUid=mER9ca9oO0ws&utparam-url=scene%3Asearch%7Cquery_from%3A

I do not know if the version you sent works with Home Assistant.

1 Like

I have the Xiaomi model from the above post for more than an two years working perfectly (with some Wi-Fi loss 3-4 times / year, has DHCP reservation) integrated in HA with “Xiaomi Miot Auto” has local communication. It is verry sensitive and it will detect smoking in the first 5 to 10 seconds since it was light (my room is small and sensor is close to the smoking desk. (the sensor has small fan inside to take air faster from the environment)
I can even count the cigarettes smoked / day in that room, actually this is a great idea, I can then know how much money is wasted by my girlfriend, only she smokes. Good bargaining chip when I want to waste money on audio equipment :slight_smile:
I can share the automation or anything that you might need if someone is interested.

Here is the graph for the last 24h, anything over 800 is a smoke brake. In the morning that big spike is definitely 2 or 3 tigress with coffee.

1 Like

@jubjub03, the sensor you sent in the link doesn’t seem to have wi-fi. So i believe you can not connect it to HA…

I just want to add my experience to this.

I’m using a Sensirion SPS30 connected to a WEMOS S2 mini ESP32 board running ESPhome to detect cigarette smoke from neighbours so I can close the windows.

I have the sensor mounted in a solar radiation shield type enclosure outside and it’s proven effective at detecting my neighbours smoking, although the worst offender smokes practically on top of the sensor (balcony above).

The sensor runs continuously and I have a derivative type helper set up so it triggers only on sudden increases. It’s set up to alert via broadcast to my nest mini speakers (“Air pollution detected”) and only when the window or door to the terrace is open.

This is the last two days of the raw sensor output:

Just triggered a few minutes ago which I circled in red.

This is the derivative:

image

Same event circled in red. (Note that the raw data shows 2 days and derivative only shows 1)

Hello, I’ve just bought a Xiaomi pm2.5 following your advice but I can’t connect it to the xiaomi app, it seems like it’s not in the app, how can I do this?

Hello, use the qingping+ app from the Google store to connect it to wi-fi from your phone, after that you have two options to connect it to HA.
1 using the Xiaomi auto integration using wi-fi.(Or other integration)
2 Xiaomi Bluetooth using an Bluetooth proxy.