dolezsa / thermal_comfort

Thermal Comfort sensor for HA (absolute humidity, heat index, dew point, thermal perception)
Other
584 stars 109 forks source link

Internationalization doesn't work with `custom:multiple-entity-row` anymore #261

Closed nikipore closed 1 year ago

nikipore commented 1 year ago

With the very useful custom card "multiple entity row", the internationalization is broken. It used to work properly until recently and broke with one of the last Thermal Comfort releases.

entities:
  - entity: sensor.wohnzimmer_summer_simmer_perception
    type: custom:multiple-entity-row
    name: Wärme
    entities:
      - entity: binary_sensor.wohnzimmer_ventilate_temperature
        name: false
        hide_if: 'off'
        state_color: true
        icon: true
  - entity: sensor.wohnzimmer_dew_point_perception
    type: custom:multiple-entity-row
    name: Klima
    entities:
      - entity: binary_sensor.wohnzimmer_ventilate_humidity
        name: false
        hide_if: 'off'
        state_color: true
        icon: true

This combines a summer simmer (dew point) perception with a ventilation recommendation when it is colder (less humid) outside: Bildschirm­foto 2023-01-14 um 18 41 41

The internationalization of the sensor itself it still working correctly: Bildschirm­foto 2023-01-14 um 18 42 04

hawkeye80 commented 1 year ago

Same issue here with custom:button-card. It worked perfectly with latest 1.x version.

rautesamtr commented 1 year ago

We switched to the new way of translating the state of entities. That's probably the issue.

nikipore commented 1 year ago

So you're surmising that the custom:* cards haven't yet? I have already contributed a comment to a ticket for custom:multiple-entity-row alleging it's a bug not an enhancement.

@hawkeye80: Would you mind to take care of custom:button-card?

rautesamtr commented 1 year ago

I haven't checked yet, but that's what changed for thermal comfort so it is likely that the issue comes from that change.

hawkeye80 commented 1 year ago

@nikipore Just saw that there is already an bug opened on the translations with 2023.1 for custom:button-card. https://github.com/custom-cards/button-card/issues/646

nikipore commented 1 year ago

It’s working now with v4.5.0 of custom:multiple-entity-row.