Hey all,
@pedolsky thank you for your help in the other channel.
I know some of you have asked for this card in the repo for Mushroom. I also understand the complexities for the dev to get the card built. With some trial and error, I have managed to create a card I am happy with what I have achieved.
This card is used with Google Calendar, Mushroom chips and Mushroom Person card, to navigate to various dashboards we use around the house.
Let me know if there is a better place to share the YAML and ask me anything.
card:
type: vertical-stack
cards:
- type: custom:mushroom-title-card
title: |2-
{%- if now().hour < 12 -%}Morning
{%- elif now().hour < 18 -%}Afternoon
{%- else -%}Evening{%- endif -%}, {{user}}
subtitle: >-
♻️ {{state_attr('calendar.bins', 'message')}} on {{
as_timestamp(state_attr("calendar.bins","start_time") |
default(now(),true) )| timestamp_custom('%-d %b') }}
- type: horizontal-stack
cards:
- type: custom:mushroom-chips-card
card_mod:
style: |
:host {
padding-top: 10px;
padding-left: 10px;
padding-bottom: 25px;
--ha-card-background: white;
}
chips:
- type: action
icon_color: red
tap_action:
action: navigate
navigation_path: media-control
icon: mdi:remote
hold_action:
action: none
double_tap_action:
action: none
- type: action
icon_color: blue
tap_action:
action: navigate
navigation_path: audio
icon: mdi:radio
- type: action
icon_color: blue-grey
icon: ios:hifispeaker-fill
tap_action:
action: navigate
navigation_path: media-settings
- type: action
icon_color: amber
hold_action:
action: none
double_tap_action:
action: none
icon: mdi:lightbulb-group
tap_action:
action: navigate
navigation_path: all-lights
- type: action
icon_color: green
icon: mdi:timeline-clock
hold_action:
action: none
double_tap_action:
action: none
tap_action:
action: navigate
navigation_path: automations
alignment: justify
- type: horizontal-stack
cards:
- type: custom:mushroom-person-card
card_mod:
style: |
:host {
padding-left:10px;
--ha-card-background: #292929;
}
entity: person.dan
fill_container: true
icon: mdi:face-man
tap_action:
action: navigate
navigation_path: dan
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-person-card
card_mod:
style: |
:host {
padding-left:10px;
--ha-card-background: #292929;
}
entity: device_tracker.chloe
fill_container: true
icon: mdi:face-woman
card_mod:
style: |
ha-card {
background: #1c1c1c;
padding-left: 25px;
padding-right: 25px;
padding-bottom: 25px;
}