Hi,
I do have quite some sensors that are templates, and that put out text, eg:
somecustomsensor:
value_template: >
{% if _something__ %}
Locked
{% else %}
Unlocked
{% endif %}
So far, so good.
Is there a possibility to format the output in such a way that (depending on the “Language” setting of HA) a different text is presented?
Something like this:
somecustomsensor:
value_template: >
{% if _something__ %}
[en]Locked
[de]Verriegelt
{% else %}
[en]Unlocked
[de]Entriegelt
{% endif %}
So I (with “English” as the language setting) will get Locked
, whereas another user (with “German” as the language setting) will see Verriegelt
.
Couldn’t find anything in this direction.
Thanks,
Thomas