Hey there,
i need some help.
I cant get my Tablet Dashboard to fit perfectly.
What i want is that the left column is on the very left side of the screen, but no matter how much i increase padding it wont move more to the left.
How can i achieve this?
This is the code i currently use
type: horizontal-stack
cards:
- type: custom:layout-card
layout_type: custom:vertical-layout
cards:
- type: custom:stack-in-card
cards:
- type: custom:mushroom-template-card
primary: '{{ states(''sensor.time'') }}'
secondary: '{{ now().strftime(''%d.%m.%y'') }}'
icon: ''
card_mod:
style: |
ha-card {
--card-primary-font-size: 75px;
--card-secondary-font-size: 35px;
text-align: center;
--ha-card-background: #3b6687;
--spacing: -10px;
}
- type: custom:gap-card
height: 2
- type: custom:mushroom-template-card
primary: Ćbersicht
icon: mdi:view-dashboard
icon_color: brown
layout: horizontal
fill_container: false
hold_action:
action: none
double_tap_action:
action: none
tap_action:
action: navigate
navigation_path: /dashboard-bastitabletv2/0
card_mod:
style: |
ha-card {
--card-primary-font-size: 20px;
text-align: center;
--ha-card-background: #3b6687;
}
- type: custom:mushroom-template-card
primary: KlimagerƤte
icon: mdi:air-conditioner
icon_color: light-blue
layout: horizontal
fill_container: false
hold_action:
action: none
double_tap_action:
action: none
tap_action:
action: navigate
navigation_path: /dashboard-bastitabletv2/klima
card_mod:
style: |
ha-card {
--card-primary-font-size: 20px;
text-align: center;
--ha-card-background: #3b6687;
}
- type: custom:mushroom-template-card
primary: Energie
icon: mdi:lightning-bolt
icon_color: green
layout: horizontal
fill_container: false
hold_action:
action: none
double_tap_action:
action: none
tap_action:
action: navigate
navigation_path: /dashboard-bastitabletv2/energie
card_mod:
style: |
ha-card {
--card-primary-font-size: 20px;
text-align: center;
--ha-card-background: #3b6687;
}
- type: custom:mushroom-template-card
primary: Hausdaten
icon: mdi:home
icon_color: grey
layout: horizontal
fill_container: false
hold_action:
action: none
double_tap_action:
action: none
tap_action:
action: navigate
navigation_path: /dashboard-bastitabletv2/hausdaten
card_mod:
style: |
ha-card {
--card-primary-font-size: 20px;
text-align: center;
--ha-card-background: #3b6687;
}
- type: custom:mushroom-template-card
primary: Sensoren
icon: mdi:thermometer
icon_color: red
layout: horizontal
fill_container: false
hold_action:
action: none
double_tap_action:
action: none
tap_action:
action: navigate
navigation_path: /dashboard-bastitabletv2/sensoren
card_mod:
style: |
ha-card {
--card-primary-font-size: 20px;
text-align: center;
--ha-card-background: #3b6687;
}
- type: custom:mushroom-template-card
primary: Media
icon: mdi:play-box
icon_color: purple
layout: horizontal
fill_container: false
hold_action:
action: none
double_tap_action:
action: none
tap_action:
action: navigate
navigation_path: /dashboard-bastitabletv2/media
card_mod:
style: |
ha-card {
--card-primary-font-size: 20px;
text-align: center;
--ha-card-background: #3b6687;
}
layout:
width: 250
padding: 4px 600px 0px 0px
- type: custom:layout-card
layout_type: custom:vertical-layout
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Basti
secondary: ''
icon: |-
{% if is_state('person.basti', 'Tenowo') %}
mdi:briefcase
{% elif is_state('person.basti','BadTaura') %}
mdi:swim
{% else %}
mdi:home
{% endif %}
icon_color: |-
{% if is_state('person.basti', 'home') %}
green
{% elif is_state('person.basti', 'Tenowo') %}
red
{% elif is_state('person.basti','BadTaura') %}
blue
{% else %}
grey
{% endif %}
entity: person.basti
layout: vertical
card_mod:
style: |
ha-card {
--icon-size: 50px;
--card-primary-font-size: 20px;
}
- type: custom:mushroom-template-card
primary: Saskia
secondary: ''
icon: mdi:home
icon_color: |2-
{% if is_state('person.saskia', 'home') %}
green
{% else %}
grey
{% endif %}
layout: vertical
card_mod:
style: |
ha-card {
--icon-size: 50px;
--card-primary-font-size: 20px;
}
- type: custom:mushroom-template-card
primary: >-
{% set tage = ((state_attr('calendar.abfall_2', 'start_time') |
as_datetime |
as_local).date() - now().date()).days %}
{% if tage == 0 %}
Heute
{% elif tage == 1 %}
Morgen
{% elif tage > 1 %}
in {{ tage }} Tagen
{% endif %}
secondary: ''
icon: |-
{% set art = state_attr('calendar.abfall_2', 'message') %}
{% if art == 'gelbetonne' %}
mdi:recycle-variant
{% elif art == 'restmuell' %}
mdi:trash-can
{% elif art == 'papier' %}
mdi:note-text
{% elif art == 'biotonne' %}
mdi:delete-empty
{% else %}
mdi:chat-question
{% endif %}
icon_color: |-
{% set art = state_attr('calendar.abfall_2', 'message') %}
{% if art == 'gelbetonne' %}
yellow
{% elif art == 'restmuell' %}
blue-grey
{% elif art == 'papier' %}
blue
{% elif art == 'biotonne' %}
brown
{% endif %}
layout: vertical
card_mod:
style: |
ha-card {
--icon-size: 50px;
--card-primary-font-size: 20px;
}
- type: custom:mushroom-title-card
title: ''
subtitle: Temperatur
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
hour24: true
hours_to_show: 12
points_per_hour: 3
update_interval: 60
height: 70
line_width: 3
animate: true
align_state: center
font_size: 95
show:
name: true
icon: false
legend: false
entities:
- entity: sensor.stubentemp
name: Innen
show_state: true
color: '#ff0000'
card_mod:
style: |
ha-card {
font-size: 16px !important;
}
- type: custom:mini-graph-card
hour24: true
hours_to_show: 12
points_per_hour: 3
update_interval: 60
height: 70
line_width: 3
animate: true
align_state: center
font_size: 95
show:
name: true
icon: false
legend: false
entities:
- entity: sensor.aussentemperatur_jens_2
name: AuĆen
show_state: true
color: '#00e1ff'
card_mod:
style: |
ha-card {
font-size: 16px !important;
}
layout:
width: 650
padding: 0px 0px 0px 100px
EDIT:
I figured it out! I was using a horizontal stack, now im using 2 layout card in vertical mode.