Would you mind sharing the code for this card?
Thanks for sharing! I love your design!! to @rhysb Do you think it is possible to animate the opening of the conditional cards to make it less brutal? Thanks in advance!
Please share the code
Wow, you did a great job Thanks alot!
This is how I did it for my self.
The Code for Nest Cam Card.
- You need - Stack in Card (Hacs)
- You need - Layout Card (Hacs)
- If you need to change the size of the images or border size, just change the bold text
- type: custom:layout-card
layout_type: masonry
layout:
width: 106
max_cols: 1
height: auto
padding: 0px
card_margin: var(âmasonry-view-card-margin, 0px 8px 14px)
type: custom:stack-in-card
cards:
- type: custom:mushroom-template-card
primary: Nest Cam
secondary: Driveway
icon: mdi:camera
icon_color: blue
- type: custom:layout-card
layout_type: masonry
layout:
width: 106
max_cols: 1
height: auto
padding: 0px
card_margin: var(--masonry-view-card-margin, 0px 8px 14px)
cards:
- show_state: false
show_name: false
camera_view: auto
type: picture-entity
entity: camera.uppfart
camera_image: camera.uppfart
theme: Mushroom
card_mod:
style: |
ha-card {
background: none;
box-shadow: none;
}
Best regards
Thekholm
Thank you very much. Youâve been a great help⌠both examples are informative and should be helpful down the road.
Rami
That removed both borders, the mushroom cards and horizontal stack card column borders.
I would prefer just the mushroom horizontal column card borders be removed. The way the mushroom card borders were before was fine. Essentially removing the border of the stack-in-card only.
Hm for some reason I am unable to get that to work. I tried doing it at the mushroom card level and at the stack in card level.
I tried this piece
card_mod:
style:
mushroom-state-info$: |
* {
text-align: center;
}
type: custom:stack-in-card
mode: horizontal
cards:
- type: custom:auto-entities
card:
type: entities
filter:
include:
- area: Temperature Sensors
entity_id: /[te]mperature/
options:
type: custom:mushroom-template-card
primary: '{{ states[entity].name }}'
secondary: '{{ states(entity) | title }}'
picture: null
hold_action:
action: toggle
double_tap_action:
action: more-info
layout: null
tap_action:
action: none
card_mod:
style: |
mushroom-shape-icon {
--shape-color: none !important;
--shape-color-disabled: none !important;
}
ha-card {
background: transparent;
border-radius: 20px;
margin-left: auto;
margin-right: auto;
margin-bottom: 2px;
--icon-border-radius: 0;
}
mushroom-state-info$: |
.primary {
text-align: center;
}
exclude: []
- type: custom:auto-entities
card:
type: entities
filter:
include:
- area: Temperature Sensors
entity_id: /[hu]midity/
options:
type: custom:mushroom-template-card
primary: '{{ states[entity].name }}'
secondary: '{{ states(entity) | title }}'
picture: null
hold_action:
action: toggle
double_tap_action:
action: more-info
layout: null
tap_action:
action: none
card_mod:
style: |
mushroom-shape-icon {
--shape-color: none !important;
--shape-color-disabled: none !important;
}
ha-card {
background: transparent;
border-radius: 30px;
margin-left: auto;
margin-right: auto;
margin-bottom: 2px;
--icon-border-radius: 0;
}
exclude: []
card_mod:
style: |
ha-card {
background: transparent;
--ha-card-box-shadow: none;
}
I want to recreate what you are doing. Can you show us also the code of youâre automation.plug_2_uit . I donât how I could do this.
Wonder why the official mushroom card project has slowed down on development recently. I canât remember the last time I saw an update in HACs and thereâs some really good suggestions in here with animated icons and new cards that would be great to see included. Perhaps since the original creator joined nabu thereâs no time, or ⌠itâs being built in to replace the pants out the box theming!
When I use this it doesnât work.
secondary: >-
Currently :
â{{states(ââsensor.lr_hvac_setpointââ) | round(1)}} Câ
When I remove the âCurrently :â, it all works.
How do I combine text and state?
Thanks
Try thisâŚ
âCurrently:â
Thanks, Not working
Please use Ctrl+E
when sharing code
Does it work if you move the apostrophe?
secondary: >-
'Currently:
{{states("sensor.lr_hvac_setpoint") | round(1)}} C'
Sure. All it does is turn off a switch at the time set by the input_datetime variable that is used in the alarm card.
alias: 'Thuis modus: ''s nachts Plug 2 uit'
description: ''
trigger:
- platform: time
at: input_datetime.plug_2_s_avonds_uit
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.local_tuya_plug_2
mode: single
Thank you all!
secondary: >-
SetPoint: {{states(âsensor.lr_hvac_setpoint_â) | round(1)}}°c
Current: {{(states(âsensor.lr_hvac_target_setpointaâ)) |
float/10 | round(1)}}°c
Worked.
nice how have you person cards making can you share code ?
type: custom:stack-in-card
mode: vertical
cards:
- type: custom:mushroom-media-player-card
entity: media_player.alle_hojtalere_gruppe
media_controls:- play_pause_stop
- next
volume_controls: - volume_mute
layout: horizontal
use_media_info: true
- type: custom:mushroom-media-player-card
entity: media_player.alle_hojtalere_gruppe
fill_container: false
show_volume_level: true
use_media_info: false
media_controls: []
volume_controls:- volume_set
- volume_mute
collapsible_controls: false
primary_info: none
layout: horizontal
secondary_info: none
icon_type: none
style: |
ha-card {
âcontrol-height: 30px;
}
- type: custom:mushroom-media-player-card
entity: media_player.nest_audio
icon_type: none
volume_controls:- volume_set
- volume_mute
layout: horizontal
media_controls: []
show_volume_level: false
name: Køkken Ăâen
style: |
ha-card {
âcontrol-height: 30px;
}
mushroom-state-item {
max-width: 100px !important;
}
- type: custom:mushroom-media-player-card
entity: media_player.lyd_alrum
icon_type: none
volume_controls:- volume_set
- volume_mute
layout: horizontal
media_controls: []
show_volume_level: false
name: Cerwin Vega
style: |
ha-card {
âcontrol-height: 30px;
}
mushroom-state-item {
max-width: 100px !important;
}
- type: custom:mushroom-media-player-card
entity: media_player.badevaerelse
icon_type: none
volume_controls:- volume_set
- volume_mute
layout: horizontal
media_controls: []
show_volume_level: false
name: BadevĂŚrelset
style: |
ha-card {
âcontrol-height: 30px;
}
mushroom-state-item {
max-width: 100px !important;
}
- type: custom:mushroom-media-player-card
entity: media_player.alrum
icon_type: none
volume_controls:- volume_set
- volume_mute
layout: horizontal
media_controls: []
show_volume_level: false
name: Baggangen
style: |
ha-card {
âcontrol-height: 30px;
}
mushroom-state-item {
max-width: 100px !important;
}
- type: custom:mushroom-media-player-card
entity: media_player.garage
icon_type: none
volume_controls:- volume_set
- volume_mute
layout: horizontal
media_controls: []
show_volume_level: false
name: Garagen
style: |
ha-card {
âcontrol-height: 30px;
}
mushroom-state-item {
max-width: 100px !important;
}
card_mod:
style: |
ha-card {
âmush-spacing: 7px;
}
mushroom-state-item {
max-width: 90px !important;
}
I know itâs probably in this thread somewhere though the 3400+ posts, but would someone mind sharing their mushroom created dashboard on tablets? Seems that most Iâve seen were for mobile devices and when I try to build this on my 10" fire tablet, I canât see to get this to fill the screen using horizontal stack cards (not lining up correctly). Could I also be using the wrong card?