#if hour 9 and minute 11
1 messages · Page 1 of 1 (latest)
automations
Then use templates Jinja2 to do that.
dunno what you mean by insane xD but HA main feature is Jinja Templates.
{% set mins = as_timestamp(now()) | timestamp_custom("%M") %}
{% set hrs = as_timestamp(now()) | timestamp_custom("%H") %}
{{ mins * 10 if hrs == 9 and mins < 11 }}
Okay, I didn't know home assistant used jinja2, your stating that is extremely helpful, thank you.
that makes this easy.
{{ int(now().minute * 10) if now().minute <= 10 else 100 }}