Generic thermostate

Hi, I already made a climate configuration that works fine,
automation:
trigger:
platform: time
at: “07:15:00”
action:
- service: climate.set_temperature
data:
entity_id: climate.kitchen
temperature: 24
operation_mode: Heat

But I am wondering if it is possible to get the temperature value in the example from a mqtt variable, somithing like

temperature: ‘home/targettemp’

Instead of

temperature: 24

Is that posible? I mean use variables values to set another variable value.