Between funtion

Hello i am new to the homey,

At my house I have a nest thermostat and would like to switch my arcio from mitsubishi on and off by operating it.
For this I would like to make a function that is true or false between 2 themes of this nest.

Can you help me with this?

now i made it like the picture

between