Copy temperature input from one thermostat to another

Hi all,

I want to use the input temperature from a virtual thermostat and copy that set temperature to my real thermostat which is connected to my boiler. I’ve managed to correctly change the hvac mode but i can’t get the temperature to transfer.
some extra info that may be useful: The main thermostat is a Bosch ct200 connected thru an integration. the entity is climate.huiskamer

Here’s my code so far.

sensor:
  - platform: template
    sensors:
      target_temp_keuken:
        unit_of_measurement: 'C'
        value_template: "{{ state_attr('climate.master_therm_keuken', 'target_temperature') | int }}"
        friendly_name: Set Temperature Keuken
    
      set_hvac_slave:
        value_template: "{{ states.climate.huiskamer.state }}"
        friendly_name: Set HVAC Mode Huiskamer
      
      set_hvac_keuken:
        value_template: "{{ states.climate.master_therm_keuken.state }}"
        friendly_name: Set HVAC Mode Keuken

climate:
  - platform: generic_thermostat
    unique_id: Thermostaat Keuken
    name: master_therm_keuken
    heater: input_boolean.test
    ac_mode: false
    min_temp: 5
    max_temp: 40
    target_sensor: sensor.atc_temperature_keuken
    initial_hvac_mode: heat

In automations:
- alias: Thermostat Woonkamer - Set Slave Temperature
  trigger: 
    - platform: state 
      entity_id: sensor.target_temp_keuken
  action:
    - service: climate.set_temperature
      entity_id: climate.huiskamer
      data_template:
        temperature: "{{ trigger.to_state.state }}"
- alias: Thermostat - Set Slave HVAC Mode
  trigger:
    - platform: state
      entity_id: sensor.set_hvac_keuken
  action:
    - service: climate.set_hvac_mode
      data_template:
        entity_id: climate.huiskamer
        hvac_mode: "{{ trigger.to_state.state }}"
- alias: Thermostat - Set Slave HVAC Mode
  trigger:
    - platform: state
      entity_id: sensor.set_hvac_keuken
  action:
    - service: climate.set_hvac_mode
      data_template:
        entity_id: climate.huiskamer
        hvac_mode: "{{ trigger.to_state.state }}"