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: ''
trigger:
- entity_id: group.ditch
from: not_home
platform: state
to: home
condition:
- condition: template
value_template: "{{ (state_attr('climate.thermostat', 'target_temp_high')|int) > 79 }}"
action:
- data:
target_temp_high: 79
target_temp_low: 75
entity_id: climate.thermostat
service: climate.set_temperature