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

state-switch + layout-card: blank spaces are displayed #63

Open
ildar170975 opened this issue Oct 26, 2021 · 8 comments
Open

state-switch + layout-card: blank spaces are displayed #63

ildar170975 opened this issue Oct 26, 2021 · 8 comments

Comments

@ildar170975
Copy link

There is a view:

  • 3 Entities cards inside state-switch
  • Entity card with toggles.
title: state-switch-3
path: test-state-switch-3
type: custom:horizontal-layout
cards:

  - type: custom:state-switch
    entity: input_boolean.test_boolean
    default: "off"
    transition: none
    states:
      "on":
        type: entities
        title: "1"
        entities: &ref_entities
          - sun.sun

  - type: custom:state-switch
    entity: input_boolean.test_boolean_2
    default: "off"
    transition: none
    states:
      "on":
        type: entities
        title: "2"
        entities: *ref_entities

  - type: custom:state-switch
    entity: input_boolean.test_boolean_3
    default: "off"
    transition: none
    states:
      "on":
        type: entities
        title: "3"
        entities: *ref_entities

  - type: entities
    entities:
      - entity: input_boolean.test_boolean
        name: "1"
      - entity: input_boolean.test_boolean_2
        name: "2"
      - entity: input_boolean.test_boolean_3
        name: "3"

Using toggles you can decide whether some Entity card is displayed or not:
image

If some toggle is OFF then the corresponding card is not displayed - but also a blank space is displayed.
I expect that a next card should occupy this place.
image

@ildar170975
Copy link
Author

@sgofferj
Copy link

I think, that's a lovelace issue. I reported the same with the conditional card: home-assistant/frontend#6632

@Spirituss
Copy link

Spirituss commented Nov 2, 2021

The same is here.
Nothing is shown on the lovelace in case of custom:state-switch inside custom:layout-card.

@Spirituss
Copy link

Tested with re-installation of previous version - it works again with 8. Versions 1.9.0 and 1.9.1 - don't work.

@ASNNetworks
Copy link

Correct, al my popups with state-switch inside layout-card show empty.

@umrath
Copy link

umrath commented Feb 20, 2022

Seems that I have a similar issue.

It works for me "locally" on iOS and in the browser.
If I cast the view to my Google device, state-switch cards are not displayed. All other cards work just fine.

@ildar170975
Copy link
Author

HA 2022.3
state-switch 1.9.3

The issue still present - blank spaces:
изображение

Have to raise the issue (cannot reopen).

@ildar170975
Copy link
Author

Could it be related?
home-assistant/frontend#6632

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

6 participants