artem-sedykh / mini-climate-card

Minimalistic climate card for Home Assistant Lovelace UI
MIT License
262 stars 19 forks source link

hvac-mode translation #133

Open derlbear opened 10 months ago

derlbear commented 10 months ago

I use secondary_info: type: hvac-mode which also works. However, the output text is not translated. How can I set it so that the text appears in another language? Screenshot 2023-08-13 131749 The default climate card shows the translated output. Screenshot 2023-08-13 131818

regevbr commented 10 months ago

No idea, it is probably a new feature of HA. A PR is welcome if you want to get it working

KrX3D commented 6 months ago

you mean the "cool" text`?

image

for me it worked like this:

hvac_mode:
  style: '(value, entity) => ({ color: value !== ''off'' ? ''red !important'' : ''grey'' })'
  source:
    'off':
      icon: mdi:power
      name: Aus
    heat:
      name: Heizen
      icon: mdi:fire