Help making Environmental control rules

Hi everyone!
I’m new the the iot world and programming so I may need some help setting some basic rules to control a humidifier, heater, Air conditioner and fans.
Basically I need the humidity to stay between 2 values, along with temperature. Too hot turn off heater (if its on) and turn on A/C. Too cold vice verse, it would be nice to be able to adjust the parameters easily.
I see there is a virtual thermostat thing, would this be something I could use?
I am just not sure how to use this to change the state of a switch.

You’ll want to create a rule for each of those scenarios. For example:

  • If temperature > 22, turn heater off and turn A/C on
  • If temperature < 18, turn heater on and turn A/C off