Climate change temperature

Hey, is there a way to use a variable for the values in an automation?
I’m using home assistant to automate several ‘climate’ controls for different rental spaces. And every time a user wants the time or the temp changed I need to change the automate script.
Is there a way to put a card in the UI that contains a value, and I can use that value in the script?
like “create variable $timeClimate1 as Time”
use it in a UI card
and use it in the automate script?

### Set temperature to 24 in heat mode
automation:
  trigger:
    platform: time
    at: "07:15:00"
  action:
    - service: climate.set_temperature
      target:
        entity_id: climate.kitchen
      data:
        temperature: 24
        hvac_mode: heat

Create an input_datetime and reference it in the automation’s Time Trigger. The input_datetime will appear in the Lovelace UI.

  trigger:
    platform: time
    at: input_datetime.whatever