title_template: # This is the name of a template
default:
- font-size: "2rem"
- alignment: "center"
card:
#type: custom:mod-card
#card:
type: custom:mushroom-title-card
title: "[[title]]"
alignment: "[[alignment]]"
card_mod:
style: |
ha-card .title {
--title-font-size: [[font-size]];
}
subpanel_title_template:
default:
- font-size: "2rem"
- alignment: "center"
card:
type: "custom:layout-card"
layout_type: custom:grid-layout
layout:
grid-template-columns: 50px auto
place-items: baseline stretch
cards:
- type: custom:mushroom-chips-card
chips:
- type: back
- type: custom:decluttering-card
template: title_template
variables:
- title: "[[title]]"
- alignment: "[[alignment]]"
light_group_list_template:
default:
rename_from: " Gruppe"
rename_to: Test
card:
type: custom:auto-entities
show_empty: false
card:
type: custom:layout-card
layout_type: custom:grid
layout:
grid-template-columns: 1fr 1fr
card_param: cards
filter:
template: |-
[
{% for light in states.light.[[group_name]].attributes.entity_id %}
{% set entity = states[light] %}
{% if entity != None %}
{{
{
"type": "custom:mushroom-light-card",
"entity": entity.entity_id,
"name": (entity.attributes.friendly_name | replace(" Gruppe", ""))
}
}},
{% endif %}
{% endfor %}
]
temperature_chart_template:
card:
type: custom:apexcharts-card
series:
- entity: "[[entity]]"
attribute: current_temperature
stroke_width: 2
name: Nuværende
- entity: "[[entity]]"
data_generator: | # This is what builds the data
return [[start, entity.attributes.temperature], [end, entity.attributes.temperature]];
stroke_width: 1
name: Ønsket
apex_config:
chart:
height: 200px
header:
show: true
title: Temperatur
humidity_chart_template:
card:
type: custom:apexcharts-card
series:
- entity: "[[entity]]"
stroke_width: 2
apex_config:
chart:
height: 200px
header:
show: true
title: Luftfugtighed