Generic Thermostat based on nest thermostat and other independent temperature sensor

Hi.
I have a Nest thermostat in kids room but I would like to turn it on and off according to the temperature of another xiaomi temperature sensor that I have, which is in a different room (study).

I tried to create a generic thermostat and put the target_sensor to be my xiaomi temperature sensor, but I cant figure out what to do for the heater switch.

climate:
  - platform: generic_thermostat
    name: Study
    heater: switch.study_heater #???????
    target_sensor: sensor.xiaomi_temperature

This is my nest thermostat:

Thank you community!

any suggestion?

Did you ever figure this out? I’m not quite understanding the heater: switch.study_heater line.
What does switch.study_heater mean here? Thanks in Advance.

did you ever get this figured out? I’m currently in the same boat.

thanks