I'm new to Open Studio and am trying to write a controller for the thermostat. In other words, it would turn it on or off based on the current state of the simulation. How would I be able to accomplish this? Would I be able to write a measure that could toggle the thermostat at every Open Studio time-step?