Google asstiant, update command by guage (thermostat)

Hi,
so I got Google assistant working on my home assistant, so I can send commands to it. I would like the command to be updatable by a thermostat card. As I move the slider it wil update the comand.

set temperature room 21, set temperature room 22, set temperature room 23 etc.

so the tmeperature is a variable.

I can turn things of and on, but that is something I can do on my thermostats now. I had a lot of issues with the brand I bought, and can’t get the set.temperature to work, so I thought this could be a way to go.

Any help on setting this up, some guides or some? I have no idea where to start.

Thanks

I figured it out.
I created a number helper and added that to numberbox-card.
I can then change the value of the heat and call that helper in the Google SDK

 alias: Set heat room
  description: ''
  trigger:
  - platform: state
    entity_id:
    - input_number.heat_room
  condition: []
  action:
  - service: google_assistant_sdk.send_text_command
    data:
      command: set heat room to "{{ states('input_number.heat_room') | int }} 
      media_player: media_player.nest_hub
  mode: single