Automation

Thanks for that information, then how to manage minutes? by adding “and” ?

Add another template condition:

- condition: template
  value_template: >
    {% if is_state("sensor.alarm_minute|int", "now.time().strftime('%M')|int")%}true{% endif %}

You could combine the two with ‘and’ but that’s up to you.

I get error when start homeassistant :

ERROR:homeassistant.util.yaml:while scanning for the next token
found character ‘%’ that cannot start any token

then you have made a type error.
maybe a ( or ) to little?

Just as an observation, this case is pretty simple from an automation perspective, yet it seems like the collective does not really know how to actually make it work.

I like home assistant, but it seems like getting just a bit of automation beyond the basics seems complicated and approached almost like witchcraft.