Skip to content

Instantly share code, notes, and snippets.

@RamonBell
Created May 18, 2022 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RamonBell/7927d140fdb4c53c8c1581cfc7c0f73c to your computer and use it in GitHub Desktop.
Save RamonBell/7927d140fdb4c53c8c1581cfc7c0f73c to your computer and use it in GitHub Desktop.
type: custom:vertical-stack-in-card
mode: vertical
cards:
- type: custom:mushroom-template-card
primary: Kid's room
icon: mdi:teddy-bear
icon_color: pink
layout: horizontal
tap_action:
action: navigate
navigation_path: kids-room
- type: custom:vertical-stack-in-card
horizontal: true
cards:
- type: custom:mushroom-template-card
entity: switch.anotherkidslight
layout: vertical
icon: |-
{% if is_state('switch.anotherkidslight', 'on') %}
mdi:ceiling-light
{% else %}
mdi:ceiling-light-outline
{% endif %}
icon_color: |-
{% if is_state('switch.anotherkidslight', 'on') %}
yellow
{% endif %}
- type: custom:mushroom-template-card
entity: switch.kids_bathroom_light
layout: vertical
icon: |-
{% if is_state('switch.kids_bathroom_light', 'on') %}
mdi:paper-roll
{% else %}
mdi:paper-roll-outline
{% endif %}
icon_color: |-
{% if is_state('switch.kids_bathroom_light', 'on') %}
yellow
{% endif %}
- type: custom:mushroom-template-card
entity: switch.kids_toilet_room_light
layout: vertical
icon: |-
{% if is_state('switch.kids_toilet_room_light', 'on') %}
mdi:toilet
{% else %}
mdi:toilet
{% endif %}
icon_color: |-
{% if is_state('switch.kids_toilet_room_light', 'on') %}
yellow
{% endif %}
- type: custom:mushroom-template-card
entity: switch.kids_closet_light
layout: vertical
icon: |-
{% if is_state('switch.kids_closet_light', 'on') %}
mdi:hanger
{% else %}
mdi:hanger
{% endif %}
icon_color: |-
{% if is_state('switch.kids_closet_light', 'on') %}
yellow
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment