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

After core update 2024.7 or 2024.7.1, custom:state-switch inside of vertical-stack does not work anymore #118

Open
romajl opened this issue Jul 6, 2024 · 14 comments

Comments

@romajl
Copy link

romajl commented Jul 6, 2024

The problem
After update 2024.7 or 2024.7.1, custom:state-switch inside of vertical-stack does not work anymore

What version of Home Assistant Core has the issue?
core-2024.7.1

What was the last working version of Home Assistant Core?
core-2024.6.4

What type of installation are you running?
Home Assistant OS

@mefisto22
Copy link

same issue here

@clau-bucur
Copy link

Same for me.

@GreJ0
Copy link

GreJ0 commented Jul 7, 2024

also same for me.

@daemonenstall
Copy link

That's the same issue as here: #117

By playing around with the panel settings, I have noticed this:
The standard setting for the panel is "raster" and is not working. When I change the setting to "horizontal", "vertical" or "grid" (provided by layout card), the card is working properly again.

@smokedropp
Copy link

Same here , all my dashboads using this , but I want to update ☹️

@clau-bucur
Copy link

By playing around with the panel settings, I have noticed this: The standard setting for the panel is "raster" and is not working. When I change the setting to "horizontal", "vertical" or "grid" (provided by layout card), the card is working properly again.

Can you show your yaml code where it works? I don't understand to what layout card and panel settings are you refering.

@daemonenstall
Copy link

daemonenstall commented Jul 9, 2024

The layout card can also be found in HACS.
The third line in the code fixes it for me.

  - title: test2
    path: test2
    type: custom:grid-layout
    cards:
      - type: vertical-stack
        title: Rolläden Automatik
        cards:
          - type: entities
            entities:
              - entity: automation.rolladen_wohnen_essen_kuche_speis
                name: Automatik
              - entity: input_select.mode_weekend_workday_wohnen_essen_kueche
          - type: custom:state-switch
            entity: input_select.mode_weekend_workday_wohnen_essen_kueche
            states:
              Werktag:
                type: vertical-stack
                cards:
                  - type: custom:state-switch
                    entity: input_select.mode_open_workday_wohnen_essen_kueche
                    states:
                      Zeit:
                        type: vertical-stack
                        cards:
                          - type: entities
                            entities:
                              - entity: >-
                                  input_select.mode_open_workday_wohnen_essen_kueche
                              - entity: >-
                                  input_datetime.open_workday_time_wohnen_essen_kueche
                      Sonnenstand:
                        type: vertical-stack
                        cards:
                          - type: entities
                            entities:
                              - entity: >-
                                  input_select.mode_open_workday_wohnen_essen_kueche
                              - entity: >-
                                  input_number.offset_open_workday_wohnen_essen_kueche
                              - entity: >-
                                  sensor.template_sunrise_open_workday_wohnen_essen_kueche
                                format: time
                  - type: custom:state-switch
                    entity: input_select.mode_close_workday_wohnen_essen_kueche
                    states:
                      Zeit:
                        type: vertical-stack
                        cards:
                          - type: entities
                            entities:
                              - entity: >-
                                  input_select.mode_close_workday_wohnen_essen_kueche
                              - entity: >-
                                  input_datetime.close_workday_time_wohnen_essen_kueche
                      Sonnenstand:
                        type: vertical-stack
                        cards:
                          - type: entities
                            entities:
                              - entity: >-
                                  input_select.mode_close_workday_wohnen_essen_kueche
                              - entity: >-
                                  input_number.offset_close_workday_wohnen_essen_kueche
                              - entity: >-
                                  sensor.template_sunset_close_workday_wohnen_essen_kueche
                                format: time
              Wochenende/Ferien:
                type: vertical-stack
                cards:
                  - type: custom:state-switch
                    entity: input_select.mode_open_holiday_wohnen_essen_kueche
                    states:
                      Zeit:
                        type: vertical-stack
                        cards:
                          - type: entities
                            entities:
                              - entity: >-
                                  input_select.mode_open_holiday_wohnen_essen_kueche
                              - entity: >-
                                  input_datetime.open_holiday_time_wohnen_essen_kueche
                      Sonnenstand:
                        type: vertical-stack
                        cards:
                          - type: entities
                            entities:
                              - entity: >-
                                  input_select.mode_open_holiday_wohnen_essen_kueche
                              - entity: >-
                                  input_number.offset_open_holiday_wohnen_essen_kueche
                              - entity: >-
                                  sensor.template_sunrise_open_holiday_wohnen_essen_kueche
                                format: time
                  - type: custom:state-switch
                    entity: input_select.mode_close_holiday_wohnen_essen_kueche
                    states:
                      Zeit:
                        type: vertical-stack
                        cards:
                          - type: entities
                            entities:
                              - entity: >-
                                  input_select.mode_close_holiday_wohnen_essen_kueche
                              - entity: >-
                                  input_datetime.close_holiday_time_wohnen_essen_kueche
                      Sonnenstand:
                        type: vertical-stack
                        cards:
                          - type: entities
                            entities:
                              - entity: >-
                                  input_select.mode_close_holiday_wohnen_essen_kueche
                              - entity: >-
                                  input_number.offset_close_holiday_wohnen_essen_kueche
                              - entity: >-
                                  sensor.template_sunset_close_holiday_wohnen_essen_kueche
                                format: time

@romajl
Copy link
Author

romajl commented Jul 9, 2024

By playing around with the panel settings, I have noticed this: The standard setting for the panel is "raster" and is not working. When I change the setting to "horizontal", "vertical" or "grid" (provided by layout card), the card is working properly again.

This also seems to work for me with "type: custom:vertical-layout" :)

@colinjgibbs
Copy link

Thanks to the comments in this issue I have also used custom:vertical-layout which has fixed this issue for me as well. Thanks guys.

@carealtor
Copy link

I'm having the same issue, but using horizontal-stack. I just stumbled across the fact that hitting F5/refresh fixes it until I close and reopen HA.

@R3Cardoso
Copy link

I also noticed this, it shows sometimes, others don't, even without making any change to code.
My code is very simple, as it's only to show a button:

  - type: custom:state-switch
    entity: group
    states:
      admin:
        type: custom:mushroom-chips-card
        chips:
          - type: action
            icon: mdi:page-layout-header
            tap_action:
              action: call-service
           (...)

Hit the CTRL+F5 makes it appear, but after sometime it disappear again.

@TarheelGrad1998
Copy link

TarheelGrad1998 commented Jul 18, 2024

Mine is the same...50/50 shot on reloading the browser, if the card loads. I can refresh and sometimes get it and refresh and sometimes not get it.

And I'm not sure on the posted workaround, as yaml already has that (if I'm understanding properly):

  - icon: mdi:power-settings
    panel: false
    path: house
    title: House Settings
    type: custom:vertical-layout

Edit: I also tried adding a default, still breaks.

@ShadowFM
Copy link

Same for me

@CoryAlbrecht
Copy link

#117 #119

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