Tuya PM Box Air Quality Sensor (DCR-PM)
Available from:
Aliexpress.com
Manufacturer:
Expo.tuya.com
Install method:
Replace module
GPIO # | Component |
---|---|
GPIO00 | User |
GPIO01 | User |
GPIO02 | User |
GPIO03 | User |
GPIO04 | User |
GPIO05 | User |
GPIO09 | None |
GPIO10 | None |
GPIO12 | User |
GPIO13 | User |
GPIO14 | User |
GPIO15 | User |
GPIO16 | User |
GPIO17 | None |
Configuration
{"NAME":"PM Box","GPIO":[1,1,1,1,1,1,0,0,1,1,1,1,1,0],"FLAG":0,"BASE":54,"CMND":"TuyaMCU 99,91 | TuyaMCU 71,2 | TuyaMCU 73,3 | HumRes 1 | TempRes 1 "}
This device uses
CB3S
module which needs to be replaced with
ESP8685-WROOM-01, ESP-12, ESP-C3-12F, ESP-12H, ESPC2-12 or ESP8684-WROOM-01C. Read more about module replacement in a detailed guide.
by blakadder
by blakadder
Identified with MCU Product ID: {"p":"uihrxfv4zpx3dx3s","v":"1.0.0","m":0}
.
Please read TuyaMCU article to understand the terminology and configuration process.
Functions
dpid | function |
---|---|
2 | Temperature |
3 | Humidity |
7 | PM2.5 |
9 | PM10 |
Home Assistant Integration
Paste the entire rule box text in console and press enter.
Rule3
on tuyareceived#dptype2id9 do publish stat/%topic%/pm10 %value% endon on tuyareceived#dptype2id7 do publish stat/%topic%/pm25 %value% endon on system#boot do devicename endon on devicename#data do var16 %value% endon
on var16#state do publish2 homeassistant/sensor/%macaddr%/pm10/config {"name":"%value% PM10","state_topic":"stat/%topic%/pm10","val_tpl":"{{ value }}","dev_cla":"pm10","unit_of_meas":"µg/m³","avty_t":"tele/%topic%/LWT","pl_avail":"Online","pl_not_avail":"Offline","unique_id":"%macaddr%_pm10","dev":{"cns":[["mac","%macaddr%"]]}} endon
on var16#state do publish2 homeassistant/sensor/%macaddr%/pm25/config {"name":"%value% PM2.5","state_topic":"stat/%topic%/pm25","val_tpl":"{{ value }}","dev_cla":"pm25","unit_of_meas":"µg/m³","avty_t":"tele/%topic%/LWT","pl_avail":"Online","pl_not_avail":"Offline","unique_id":"%macaddr%_pm25","dev":{"cns":[["mac","%macaddr%"]]}} endon
Enable rule with Rule3 1
.
On a reboot or command DeviceName
the discovery payloads for two PM sensors will be sent to Home Assistant