rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.99k stars 565 forks source link

Alen Air Purifier #275

Open dlarrick opened 3 years ago

dlarrick commented 3 years ago

I have an Alen BreatheSmart air purifier and I've been able to talk to it using Tuya protocols. I wrote a (read-only) quick MQTT implementation and it's working... and then I discovered localtuya which would have saved me a bit of work. I published my work here: https://github.com/dlarrick/alen-mqtt .

I realize an air purifier is going to boil down to some switches, some sensors, and a fan device, but I didn't know if this project is collecting device types such as these for easier setup. So I thought I would leave a note. If you're interested, here are the DPS values for this unit. I don't know if other Tuya-based air purifiers use the same keys, and I have not figured out the meaning of 17 (slowly-incrementing 6-digit number), 19, or 21 (both of which seem always 0).

dps meaning
1 power
2 pm2.5, μg/m^3
3 mode (Auto, Manual, Sleep)
4 fan speed
5 Filter percent remaining
6 ionizer
7 lock
17 minutes of runtime?
19 ?
21 ?
dhutchison commented 3 years ago

Also interested to know if this is felt like something this plugin should have special support for.

I've mostly got an Elechomes KJ200G-A3B-UK setup through the Fan/Sensor/Switch entities, with a few issues with it not being grouped right for HomeKit.

I've previously contributed air purifier support to homebridge-tuya and mapped out some of the DPs.