I have a simple if-then-else, which is evaluating a calendar trigger in an automation.
Somehow the trigger works but not the if/then/else loop afterwards
here is a snippet from the conditions in the choose loop:
- conditions:
- condition: trigger
id: HASS Calendar
- condition: state
entity_id: input_boolean.vacation_mode
state: "off"
- condition: template
value_template: "{{ 'coffee' in trigger.calendar_event.summary }}"
sequence:
- if:
- condition: template
value_template: "{{ 'coffee-on' in trigger.calendar_event.summary }}"
then:
- service: switch.turn_on
data: {}
target:
entity_id: switch.coffee
else:
- service: switch.turn_off
data: {}
target:
entity_id: switch.coffee
The IF condition is evaluated but it returns false, even though the calendar summary was âcoffee-onâ.
So today morning I woke up to âmanual coffeeâ
Any suggestion?