lovelace-state-switch icon indicating copy to clipboard operation
lovelace-state-switch copied to clipboard

State-Switch with Mushroom Cards - Doesnt render the full size

Open adirburke opened this issue 2 years ago • 2 comments

Hi

As you can see in the image below, the state-swtich (Garage) doesnt render the full size when used with a template mushroom card

Screenshot 2023-09-15 at 9 51 38 am

Code :

type: custom:state-switch
entity: user
states:
  Adir:
    type: custom:mushroom-template-card
    primary: Garage
    secondary: '{{ states[''sensor.state_of_garage_door''].state }}'
    icon: mdi:garage
    entity: switch.garage_control
    icon_color: |-
      {% if is_state('sensor.state_of_garage_door', 'Open') %}
      amber
      {% endif %}
    layout: vertical
    tap_action:
      action: navigate
      navigation_path: /lovelace/garage
    double_tap_action:
      action: toggle
    fill_container: true

adirburke avatar Sep 14 '23 23:09 adirburke

Just run into the same issue. It looks like state_switch card messes "fill_container: true" settings.

surfingbytes avatar Oct 06 '23 08:10 surfingbytes

try wrapping a state with a grid, and set the grid square to true.

sr01 avatar Feb 06 '24 14:02 sr01