PiotrMachowski / lovelace-xiaomi-vacuum-map-card

This card provides a user-friendly way to fully control map-based vacuums in Home Assistant. Supported brands include Xiaomi (Roborock/Viomi/Dreame/Roidmi/Valetudo/Valetudo RE), Neato, Wyze, Roomba, Ecovacs (and probably more).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Translate tiles value using default translation or your custom templates

humbertogontijo opened this issue · comments

Description

The tiles are getting the raw value of the entity as of right now

Solution

Add the translated value if translations map is not defined or add the ability to use https://github.com/PiotrMachowski/Home-Assistant-custom-components-Custom-Templates instead

Alternatives

No response

Context

No response

At this moment it is possible to use card's built-in translation mechanism:

tiles:
  - entity: vacuum.alfred
    label: Status
    attribute: status
    icon: mdi:robot-vacuum
    translations:
      starting: Uruchamianie
      charger disconnected: Ładowarka odłączona
      idle: Nieaktywny
      remote control active: Zdalne sterowanie
      cleaning: Sprzątanie

Buuut not all languages contain appropriate translations: source

Additionally, a lot of integrations use attributes that are not translated