Help with dasshio configuration

I’ve successfully set up dasshio https://github.com/danimtb/dasshio and have 2 Dash buttons that I can use for simple tasks such as toggling switches. I was wanting to use one of the buttons to control my Nest temperature but am struggling to work out the syntax and would appreciate any help. The following is sort of what I want to do:

  action:
    - service: climate.set_temperature
      data:
        entity_id: climate.hallway
        temperature: 20.5
        operation_mode: Heat

Can anyone help? Thanks.

Are you using a dasshio addon? Can you set it up to call a script?

Im using this add-on which can call a service when it sees the button pressed.

From there you could hard code the service call with the data above or have it call a script to execute the action above.

I consistently just call a script that I can modify easily outside of the dashio config file:

{
  "timeout": 20,
  "buttons": [
    {
      "name": "xxx"
      "address": "AC:63:BE:04:F8:77",
      "domain": "script",
      "service": "xxx",
      "service_data": "{}"
    },
    {
      "name": "Lights On",
      "address": "18:74:2E:BA:30:E7",
      "domain": "script",
      "service": "dash_button_lights_on",
      "service_data": "{}"
    },
    {
      "name": "TEST",
      "address": "78:E1:03:31:BD:1B",
      "domain": "script",
      "service": "dash_button_test",
      "service_data": "{}"
    }
  ]
}

Thanks for the tip, will look into this