Control Wyze Plug Air Quality

I want my Wyze plug to turn on and off based on publically available air quality data. I can’t seem to find an IFTTT trigger that’s set up to do this, but I’m happy to do some programming.

In short, I’ll have a script that will poll, based on a threshold, the script should tell the Wyze plug to switch on/off based.

What’s the best way to put this type of thing together?

I’ve got a RaspberryPi, Alexa, Google Home, and I’m happy to write a cloud-based web service. I’m just not clear how Wyze wants us to piece this thing together.