Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide_unavailable: true does not hide #332

Closed
Mariusthvdb opened this issue Feb 13, 2024 · 4 comments
Closed

hide_unavailable: true does not hide #332

Mariusthvdb opened this issue Feb 13, 2024 · 4 comments

Comments

@Mariusthvdb
Copy link

Mariusthvdb commented Feb 13, 2024

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
@cpw7922
Copy link

cpw7922 commented May 22, 2024

I've got the same issue. Did you figure it out?

@Mariusthvdb
Copy link
Author

Mariusthvdb commented May 22, 2024

nope, the Entity option is bugged, and no response from the author yet, so we are left to use the core conditional.

Scherm­afbeelding 2024-05-22 om 13 58 35

we can do this (add the hide_unavailable option to the entities, and that works):

type: entities
entities:
  - 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
        hide_unavailable: true
      - entity: sensor.kelder_aanbouw_hygro_temp_battery
        name: Battery
        hide_unavailable: true
    secondary_info:
      entity: sensor.kelder_aanbouw_hygro_temp_signal_strength
      hide_unavailable: true
      name: Signal
Scherm­afbeelding 2024-05-22 om 14 03 34

It still shows the main entity though, and that ofc is the issue at hand

@ildar170975
Copy link

You are using “hide_unavailavle” in a wrong place - and yet call it a bug.
Read docs - this option is supported only for entities inside “entities” option, not for the main entity.

@Mariusthvdb
Copy link
Author

yep.
I already mentioned the latter in my post above.

And concede to the former.

Should be a feature request.

closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants