Value sensor template config: show attribute if start time attribute equals today

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?

no one has an idea? am I the only one who tries to use an if statements that checks for start_time = today?

I’m also interested in this. But, I don´t have the solution. Did you find a solution?

Unfortunately, no, still no working solution…