Hello everybody,
for a futur blueprint i need templating something like that but i don’t find the syntax
{% set today2 = now().strftime('%A') | lower %}
{{ today2 }}
{% set saturday_morning_time = states('input_datetime.saturday_morning_time') %}
saturday morning time : {{ saturday_morning_time }}
{% set morningtime = {{ today2~'_morning_time' }} %}
morningtime : {{ morningtime }}
I don’t find the syntax for having the value of "morningtime"
which is the state of the concat with the day.
Also the same of the variable saturday_morning_time
I try brackets, simple quote, curly brackets, double quote, parenthesis…
Is anybody have an idea please ?
Thanks a lot
The idea is to have sunday_morning_time
and compare in a template using today2