mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 15:56:51 +00:00
2023.1: Translation improvements for entities
This commit is contained in:
parent
b74b808b04
commit
cef965ee36
@ -160,38 +160,28 @@ added. This includes repetitions like: on the 20th day or the first Wednesday of
|
|||||||
the month. The latter, of course, is helpful to put the Home Assistant
|
the month. The latter, of course, is helpful to put the Home Assistant
|
||||||
release day on your calendar 😉
|
release day on your calendar 😉
|
||||||
|
|
||||||
## Translation & automation editor improvements for entity attributes
|
## Translation improvements for entities
|
||||||
|
|
||||||
{% details "TODO" %}
|
The support for translations for entity has been improved, especially those
|
||||||
|
of entity attributes! A relatively small change that is improving the UI
|
||||||
|
experience quite a bit.
|
||||||
|
|
||||||
- Better title
|
Some entities provide additional properties For example, climate entities
|
||||||
- Better story
|
provide presets or fan modes. Integrations can now offer translations for
|
||||||
- Spelling/grammar
|
those attribute values.
|
||||||
- Add `translation_key` property to entites ([@emontnemery] - [#82701]) ([recorder docs]) ([accuweather docs])
|
|
||||||
- Add enum device_class and state options property to sensor entities ([@frenck] - [#82489]) ([demo docs]) ([sensor docs])
|
|
||||||
- Add support for translating custom attribute state ([@emontnemery] - [#83386]) ([demo docs])
|
|
||||||
- Add support for translating state attributes ([@emontnemery] - [#77028]) ([climate docs])
|
|
||||||
|
|
||||||
{% enddetails %}
|
Additionally, textual sensor entities can now provide a list of possible states
|
||||||
|
they can be in, for which, of course, translations can be provided for now too.
|
||||||
|
|
||||||
This release is adding small improvements to the handling of entity attributes.
|
<img class="no-shadow" src='/images/blog/2023-01/entity-translations.png' alt='Screenshots showing the effects of having translated entity attributes'>
|
||||||
|
|
||||||
Some entities provide additional properties, for example, climate entities
|
In the above screenshot, on the left, you can see how the presets of my
|
||||||
provide presets. Or sensor entities provide a textual state from a fixed set of
|
thermostat now show up nicely in a human-readable format (instead of, for example,
|
||||||
possible states.
|
"anti_forst" in previous releases).
|
||||||
|
|
||||||
This release adds the possibility to our Home Assistant Core for sensor entities
|
On the right, the [Moon](/integrations/moon) sensor used in an automation
|
||||||
to provide all possible state for such sensors, and more importantly, it provides
|
trigger, Home Assistant can now suggest states you can use in those cases.
|
||||||
the capability for integrations to provide translations for those values!
|
Those suggestions will also be translated into the language you are using.
|
||||||
|
|
||||||
<p class='img'>
|
|
||||||
<img class="no-shadow" src='https://user-images.githubusercontent.com/195327/203090437-3756a83b-b30a-471f-baf7-e949a5a649a5.png' alt='Lorem ipsum'>
|
|
||||||
Note: Placeholder screenshot that needs to be replaced.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
These things greatly improve the UI experience, especially in the automations
|
|
||||||
and scripts editors. Those will now be able to provide more, and localized,
|
|
||||||
suggestions directly from the UI.
|
|
||||||
|
|
||||||
## Other noteworthy changes
|
## Other noteworthy changes
|
||||||
|
|
||||||
|
BIN
source/images/blog/2023-01/entity-translations.png
Normal file
BIN
source/images/blog/2023-01/entity-translations.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 226 KiB |
Loading…
x
Reference in New Issue
Block a user