I have an automation that is running fine but i am wanting to add a condition to it so it does not fire unless it is necessary. The condition is supposed to be that the thermostat is set to away mode but it is making the automation not fire at all.
Thanks for your help
- alias: "Ecobee Resume By Door or Window Automation Downstairs"
trigger:
- platform: state
entity_id: group.downstairs_windows_and_doors
to: 'off'
condition:
- condition: template
value_template: "{{ state_attr('climate.downstairs','preset_mode') == 'away' }}"
action:
- service: climate.ecobee_resume_program
data:
entity_id: climate.downstairs
The condition looks right to me but in your posted code you have an extra space before âgroup.downstairs_windows_and_doorsâ. Iâm not sure if that would break the automation but Iâd thought Iâd point it out just in case.
Yep it did. I put it back in and it worked this time. Ecobee has been having server issues the past week. It might have been on their side. Thanks for your help everyone