I figured it out. This is how it is done. However, this works with the Russian language.
Passed
{%- set time = (as_timestamp(now()) - as_timestamp(states.input_boolean.otpravit_v_telegu.last_changed)) | int %}
{%- set minutes = ((time % 3600) // 60) %}
{%- set minutes = '{} '.format(minutes)|format(morph=‘минута’, as_text=false) if minutes > 0 else ‘’ %}
{%- set hours = ((time % 86400) // 3600) %}
{%- set hours = '{} hours '.format(hours)|format(morph=‘час’, as_text=false) if hours > 0 else ‘’ %}
{%- set days = (time // 86400) %}
{%- set days = '{} days '.format(days)|format(morph=‘день’, as_text=false) if days > 0 else ‘’ %}
{{ ‘Less than 1 minute’ if time < 60 else days + hours + minutes }}
We incline
{{ 1|format(morph=‘минута’, as_text=false) }} 1 minute
{{ 2|format(morph=‘минута’, as_text=false) }} 2 minutes
{{ 4|format(morph=‘минута’, as_text=false) }} 4 minutes
{{ 10|format(morph=‘минута’, as_text=false) }} 10 minutes
{{ 48|format(morph=‘минута’, as_text=false) }} 48 minutes
{{ 1|format(morph=‘час’, as_text=false) }} 1 hour
{{ 2|format(morph=‘час’, as_text=false) }} 2 hours
{{ 4|format(morph=‘час’, as_text=false) }} 4 hours
{{ 10|format(morph=‘час’, as_text=false) }} 10 hours
{{ 48|format(morph=‘час’, as_text=false) }} 48 hours
Текст на русском (Text in Russian)
Разобрался. Делается это так. Правда это работает с русским языком.
![image](https://community-assets.home-assistant.io/original/3X/1/b/1b68662f956c16420f4907306c7e319a5119c6ba.png)
Прошло
{%- set time = (as_timestamp(now()) - as_timestamp(states.input_boolean.otpravit_v_telegu.last_changed)) | int %}
{%- set minutes = ((time % 3600) // 60) %}
{%- set minutes = '{} '.format(minutes)|format(morph=‘минута’, as_text=false) if minutes > 0 else ‘’ %}
{%- set hours = ((time % 86400) // 3600) %}
{%- set hours = '{} hours '.format(hours)|format(morph=‘час’, as_text=false) if hours > 0 else ‘’ %}
{%- set days = (time // 86400) %}
{%- set days = '{} days '.format(days)|format(morph=‘день’, as_text=false) if days > 0 else ‘’ %}
{{ ‘Less than 1 minute’ if time < 60 else days + hours + minutes }}
Склоняем
{{ 1|format(morph=‘минута’, as_text=false) }}
{{ 2|format(morph=‘минута’, as_text=false) }}
{{ 4|format(morph=‘минута’, as_text=false) }}
{{ 10|format(morph=‘минута’, as_text=false) }}
{{ 48|format(morph=‘минута’, as_text=false) }}
{{ 1|format(morph=‘час’, as_text=false) }}
{{ 2|format(morph=‘час’, as_text=false) }}
{{ 4|format(morph=‘час’, as_text=false) }}
{{ 10|format(morph=‘час’, as_text=false) }}
{{ 48|format(morph=‘час’, as_text=false) }}