Automation Condition template

I have an automation that adjusts the setpoint of my thermostat when I get home but I want it to not adjust it if I have manually done it. The automation to adjust works, I just cant get the template to work correctly. When I put the template into the template tab on the developer tools it shows true or false correctly. Can somebody help me out.

- id: '1578151428830'
  alias: Set Temp When Home
  description: ''
  - entity_id: group.ditch
    from: not_home
    platform: state
    to: home
  - condition: template
    value_template: "{{ (state_attr('climate.thermostat', 'target_temp_high')|int) > 79 }}"
  - data:
      target_temp_high: 79
      target_temp_low: 75
    entity_id: climate.thermostat
    service: climate.set_temperature

What error are you receiving?

I’m not sure, but you should change the int to float.
Maybe you have to change 79 to 79.0

I don’t see an error in the log or when I execute, the action just executes no matter what the current target_temp_high is set to. I have changed the int to float and tried making it 79.0 but that didn’t seem to change anything.

Defining as int should be fine. Template looks good. Make sure you are reloading your automations once they are saved.

Thanks for the help. It was working properly, I forgot that if you hit execute on the automation page that it would force the action to run and bypass the condition.