Hi,
i am using a google calendar component to show me birthdays of the current day. per default, the google calendar component shows me the next birthday, regardless if it is today or next week etc.
in order to circumvent this, i would like to use a value template that checks:
IF entity attribute “start_time” = today THEN show entity attribute “message”
I tried some combinations but was not successful. Currently I am using the following:
value_template: >
{% if is_state("calendar.contacts.attributes.start_time", now()) %}
{{ states.calendar.contacts.attributes.message }}
{% else %}
Nobody
{% endif %}
the code above does not run into an error, as it shows me the value “Nobody”, but it does not reflect reality, so the IF statement is wrong. Any idea how to fix it?