mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
2024.3: Finalize state_translated
This commit is contained in:
parent
71411ddda6
commit
7bc4e915ff
@ -182,11 +182,11 @@ Remote UI feature.
|
|||||||
|
|
||||||
## Translating states in your templates
|
## Translating states in your templates
|
||||||
|
|
||||||
Are you using templates to send notifications in automations? If so,
|
Are you using {% term templates %} to send notifications in automations? If so,
|
||||||
[@PiotrMachowski] might just have added something new you need!
|
[@PiotrMachowski] might just have added something new you need!
|
||||||
|
|
||||||
A new template method, `state_translated`, to translate entity states directly
|
A new template method, `state_translated`, to translate entity states directly
|
||||||
in your language from your templates! Consider this template example:
|
from your templates! Consider this template example:
|
||||||
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
```yaml
|
```yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user