Open romajl opened 2 months ago
same issue here
Same for me.
also same for me.
That's the same issue as here: https://github.com/thomasloven/lovelace-state-switch/issues/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.
Same here , all my dashboads using this , but I want to update ☹️
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.
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
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" :)
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.
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.
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.
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.
Same for me
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