Xiaomi Air Purifier 2 automation/IFTTT

Hi there,

sorry if my question is slightly off-topic, but I hope someone in this forum can help me.

I’ve got a Xiaomi Air Purifier 2 mainly to filter out pollen in the air, as I’m allergic to some of them.

Now I’d like to automate the process, if I open the window, I want the air purifier to run on maximum for the next 15 minutes.
With the Xiaomi smart home window open sensor, that should be no problem.

How can I integrate the air purifier 2 in my smart home?
Is there a way to use IFTTT (If This Then That, https://ifttt.com)?
Or is there an alpha version, or even a hack for the raspberry pi or so how I can control the air purifier 2?

I would appreciate any help.

Air purifier is manufactured by another company, we (Yeelight) can’t do anything except forwarding your request to them.