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

2024.6.0b0: issue with conditional cards in sections view #20923

Closed
4 tasks done
mbo18 opened this issue May 30, 2024 · 10 comments · Fixed by #20966
Closed
4 tasks done

2024.6.0b0: issue with conditional cards in sections view #20923

mbo18 opened this issue May 30, 2024 · 10 comments · Fixed by #20966
Assignees
Milestone

Comments

@mbo18
Copy link
Contributor

mbo18 commented May 30, 2024

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

When adding a conditional card to a section and when the condition is not met there is an empty space on the dashboard.

With 2024.5.4:
IMG_9802

With 2024.6.0b0 and b1:
IMG_9803

Describe the behavior you expected

Same behavior as 2024.5.4 so no empty space

Steps to reproduce the issue

  1. add a section view to a dashboard
  2. Add a section
  3. Add a conditional view with a condition which is false
  4. Save your view
    ...

What version of Home Assistant Core has the issue?

core-2024.6.0b0

What was the last working version of Home Assistant Core?

core-2024.5.x

In which browser are you experiencing the issue with?

Safari, Firefox latest release

Which operating system are you using to run this browser?

macOS and iOS

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

@andrewfluck
Copy link

andrewfluck commented May 30, 2024

Screenshot 2024-05-30 at 14 13 48

I have ran into this as well, and as a side note, the conditional card overrides any grid layout that occurs with the child card. (but I'm sure folks are already aware of this)

@Revilo91
Copy link

Same as #20352?

@philipp-frank
Copy link

philipp-frank commented May 31, 2024

When sections where introduced in 2024.4 there was the same issue in the beginning - see #20479 - but it was fixed(?) and worked for me until 2024.6.0b0. Now the empty space is shown again.

@mbo18
Copy link
Contributor Author

mbo18 commented May 31, 2024

I don’t think it is the same issue as it is working fine with release 2024.5. Also I do not use custom card at all and even in safe mode the issue is there

@piitaya
Copy link
Member

piitaya commented May 31, 2024

We did some change in the dashboard with the 2024.6.

We introduced the visibility option on every card and section so the conditional card can be replaced with this new option.

But I will take a look to this issue to keep compatibility with conditional card too.

@piitaya piitaya self-assigned this May 31, 2024
@RonnieRocket2
Copy link

Same experience for me since a recent update.

@RonnieRocket2
Copy link

Reverted to core 2024.5.4 it works correctly now but reading the comments it looks like there is a visibility option on every card so I guess I need to look for that and switch it off for the conditional cards.

@andrewfluck
Copy link

We introduced the visibility option on every card and section so the conditional card can be replaced with this new option.

I must not have read the documentation hard enough, but could you link where it lets you show hide cards individually without the conditional card? Or did I misunderstand what you meant? 😅

@mbo18
Copy link
Contributor Author

mbo18 commented Jun 1, 2024

It is currently an open PR #20926

@piitaya
Copy link
Member

piitaya commented Jun 1, 2024

The yaml part is merged (#20840) but the UI part needs to be merged (#20926).

You can test the feature but adding your conditions directly on the card config under the visibility key. For example :

type: entity
entity: light.bed_light
visibility:
  - condition: state
    entity: person.paul
    state: home
  - condition: state
    entity: light.kitchen_lights
    state: "on"

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

Successfully merging a pull request may close this issue.

7 participants