OO
Size: a a a
OO
DD
CP
{{ ((as_timestamp(now()) - state_attr('input_datetime.test', 'timestamp')) / 86000 | int) | round(0) }}
Y
Y
С
С
CP
input_datetime:
test:
has_date: true
has_time: true
С
input_datetime:
test:
has_date: true
has_time: true
С
CP
С
С
input_datetime:если время считать не нужно?
test:
has_date: true
has_time: false
DD
{{((as_timestamp(now())-as_timestamp("2020-03-01T00:00:00+03:00"))/86400)|int}}Ну или так, прямо прописав дату в шаблоне без input_datetime
С
С
{{((as_timestamp(now())-as_timestamp("2020-03-01T00:00:00+03:00"))/86400)|int}}Ну или так, прямо прописав дату в шаблоне без input_datetime
DD
DD
IB