I have a calendar integrated in home assistant, that shows the national holidays in Egypt (all day events in the calendar). My idea is, when the event name contains the word ‘Eid’ and automation will start on the day. So, I made an automation that goes like this:
alias: Eid Day
description: ''
trigger:
- platform: calendar
event: start
offset: 0:0:0
entity_id: calendar.egypt_holidays
- platform: calendar
event: end
offset: 0:0:0
entity_id: calendar.egypt_holidays
condition:
- condition: template
value_template: "{{ ''Eid'' in trigger.calendar_event.summary }}"
action:
- service: notify.mobile_app_iphone
data:
message: It's Eid day
mode: single
But, in the GUI, when I press the ‘test’ button to test my condition, it gives me an error meaasage: invalid template (TemplateSyntaxError: expected token ‘end of print statement’, got ‘Eid’) for dictionary value @ data[‘value_template’]
Thanks for your prompt help. Unfortunately, now, I go this error message: template value should be a string for dictionary value @ data[‘value_template’]. Got None