lovelace-multiple-entity-row icon indicating copy to clipboard operation
lovelace-multiple-entity-row copied to clipboard

hide_unavailable: true does not hide

Open Mariusthvdb opened this issue 1 year ago • 0 comments

consider:

  - type: custom:multiple-entity-row
    entity: sensor.kelder_aanbouw_hygro_temp_temperature
    hide_unavailable: true
    state_header: Temp
    name: Kelder
    entities:
      - entity: sensor.kelder_aanbouw_hygro_temp_humidity
        name: Vocht
      - entity: sensor.kelder_aanbouw_hygro_temp_battery
        name: Battery
    secondary_info:
      entity: sensor.kelder_aanbouw_hygro_temp_signal_strength
      name: Signal

while the sensor.kelder_aanbouw_hygro_temp_temperature entity is unavailable:

Scherm­afbeelding 2024-02-13 om 13 06 11

still showing:

Scherm­afbeelding 2024-02-13 om 13 04 03

supposed to be hidden from the view.

HA 2024.2 M-E-R: 4.5.0

using core conditional does work as hoped for:

card:
  type: conditional
  conditions:
    - entity: sensor.[[id]]_hygro_temp_temperature
      state_not: unavailable
  card:
    type: custom:multiple-entity-row
    entity: sensor.[[id]]_hygro_temp_temperature
    # hide_unavailable: true
    state_header: Temp
    name: '[[name]]'
    <<: &width
      styles:
        width: 60px
        text-align: center
    entities:
      - entity: sensor.[[id]]_hygro_temp_humidity
        name: Vocht
        <<: *width
      - entity: sensor.[[id]]_hygro_temp_battery
        name: Battery
        <<: *width
    secondary_info:
      entity: sensor.[[id]]_hygro_temp_signal_strength
      name: Signal

Mariusthvdb avatar Feb 13 '24 12:02 Mariusthvdb