Multiple-entity-row hide entire row if unavailable?

I recently bought a temp sensor to use with my pool. It is only needed during summer really. I could add it to a separate card and hide it if unavailable but I would like to incorporate it into to card that uses multiple-entity-row for all my temps. I am wondering if there is a way to hide the entire row if the sensor becomes unavailable? I can hide the entity but not the entire row it seems:

prove

Is it possible to to hide the entire row if sensor is unavailable?


  - entity: sensor.sonoff_probe_temp_01_temperature
    show_state: false
    hide_unavailable: true
    icon: mdi:thermometer-water
    type: custom:multiple-entity-row
    name: Poolvattnet
    state_header: null
    format: precision1
    entities:
      - entity: sensor.sonoff_probe_temp_01_temperature
        hide_unavailable: true
        name: false
        format: precision1
      - entity: input_text.n_a
        name: false
        format: precision1

Maybe there is a better way. But I ended up duplicating the card and setting visibility condition on Unavailble vs not Unavailable. Seems to work.

Check out UIX Forge now available in UI eXtension 6.0.0-beta by which you can forge elements (cards, badges, rows, sections) including hiding the element entirely by both template and also event data I.e. hide/show by Frontend action only via event spark.

The “hide_unavailable” option only works for a secondary entity.
Use a standard conditional row:

  - type: conditional
    conditions:
      - condition: state
        entity: sensor.xxx
        state_not: unavailable
    row:
      type: custom:multiple-entity-row
      entity: sensor.xxx
      icon: ...
      name: ...
      entities:
        - ...

Much better than depend on 3rd party plugins, especially with no history.

1 Like

Do you know flex cells card? it is quiet flexible and can hide info if conditions are met: