Skip to content
Discussion options

You must be logged in to vote

Ah, I've figured it out...
The response template is incorrect in Slovak. The correct one should be:

        {% set temperature = state_attr(state.entity_id, 'current_temperature') %}
        {{ temperature }} °C

But the Slovak response queries the {{ state.state }} status.
Thus, "Kúrenie" would be correct, but since it's not a number, it results in an error.

If you have the opportunity, please correct it like this:

        {% set temperature = state_attr(state.entity_id, 'current_temperature') %}
        {{ temperature }} {{ 'stupeň' if temperature | int | abs == 1 else 'stupne' if temperature | int | abs in [2,3,4] else 'stupňov' }}

Replies: 2 comments 16 replies

Comment options

You must be logged in to vote
16 replies
@tetele
Comment options

tetele Jan 23, 2024
Collaborator

@brano6
Comment options

@v1k70rk4
Comment options

@v1k70rk4
Comment options

Answer selected by tetele
@brano6
Comment options

@v1k70rk4
Comment options

@brano6
Comment options

@v1k70rk4
Comment options

v1k70rk4 Feb 2, 2024
Collaborator

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
_Q&A
Labels
None yet
3 participants