More complex triggers?

Only with esp8266 a bit difficult. you can try to use cayenne rest API and get the latest data on a raspberry pi using Python code to access basic cayenne API. and then have a trigger to turn on the fan.