#State / Temperature / Humidity / Graph in the same card
1 messages · Page 1 of 1 (latest)
Yes I would also like to know! Looks great
Currently, I have that :
type: custom:stack-in-card
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-title-card
subtitle: Salon
- type: vertical-stack
cards:
- type: custom:mushroom-entity-card
entity: sensor.ecran_temperature
primary_info: state
secondary_info: none
icon_color: green
card_mod:
style: |
ha-card {
border: none;
--spacing: 2px;
}
- type: custom:mushroom-entity-card
entity: sensor.ecran_humidite
primary_info: state
secondary_info: none
icon_color: blue
card_mod:
style: |
ha-card {
border: none;
--spacing: 2px;
}
- type: custom:mini-graph-card
entities:
- entity: sensor.ecran_temperature
name: Temperature
color: "#00bb33"
hours_to_show: 24
points_per_hour: 6
hour24: true
line_width: 2
smoothing: false
show:
name: false
icon: false
state: false
legend: false
fill: fade
card_mod:
style: |
ha-card {
border: none;
padding: 0;
}
.type-custom-mini-graph-card {
padding: 0;
}
card_mod:
style: |
ha-card {
--stack-card-gap: 0;
}
thank you! this uses mushroom card?
How to create "custom:stack-in-card"?
I use both : "Mushroom" and "Stack In Card" (by @sleek vigil) HACS addon
I already use it, but more included with other infos
Here my last version:
type: custom:stack-in-card
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: sensor.ecran_temperature
icon_type: none
name: Salon
primary_info: name
secondary_info: last-updated
fill_container: true
tap_action: none
card_mod:
style: |
ha-card {
border: none;
}
- type: vertical-stack
cards:
- type: custom:mushroom-entity-card
entity: sensor.ecran_temperature
primary_info: state
secondary_info: none
icon_color: green
card_mod:
style: |
ha-card {
border: none;
--spacing: 2px;
}
- type: custom:mushroom-entity-card
entity: sensor.ecran_humidite
primary_info: state
secondary_info: none
icon_color: blue
card_mod:
style: |
ha-card {
border: none;
--spacing: 2px;
}
- type: custom:mini-graph-card
entities:
- entity: sensor.ecran_temperature
name: Temperature
color: "#00bb33"
hours_to_show: 24
points_per_hour: 6
hour24: true
line_width: 2
smoothing: false
show:
name: false
icon: false
state: false
legend: false
fill: fade
card_mod:
style: |
ha-card {
border: none;
padding: 0;
}
.type-custom-mini-graph-card {
padding: 0;
}
card_mod:
style: |
ha-card {
--stack-card-gap: 0;
}
I use stack card to have 4 of them in one card
I used your code to reproduce something similar, but I don't get the same result.
this is my code:
``type: custom:stack-in-card
cards:
- type: horizontal-stack
cards:- type: custom:mushroom-entity-card
entity: climate.salone
icon_type: none
name: Salone
primary_info: name
secondary_info: last-updated
fill_container: true
tap_action: none
card_mod:
style: |
ha-card {
border: none;
} - type: vertical-stack
cards:- type: custom:mushroom-entity-card
entity: sensor.salone_temperatura
primary_info: state
secondary_info: none
icon_color: green
card_mod:
style: |
ha-card {
border: none;
--spacing: 2px;
} - type: custom:mushroom-entity-card
entity: sensor.salone_umidita
primary_info: state
secondary_info: none
icon_color: blue
card_mod:
style: |
ha-card {
border: none;
--spacing: 2px;
}
- type: custom:mushroom-entity-card
- type: custom:mushroom-entity-card
- type: custom:mini-graph-card
entities:- entity: sensor.salone_temperatura
name: Temperature
color: "#00bb33" - entity: sensor.salone_umidita
name: Humidity
color: blue
y_axis: secondary
hours_to_show: 6
points_per_hour: 6
hour24: true
line_width: 2
smoothing: true
show:
labels: true
labels_secondary: true
name: false
icon: false
state: false
legend: false
fill: fade
card_mod:
style: |
ha-card {
border: none;
padding: 0;
}
.type-custom-mini-graph-card {
padding: 0;
}
card_mod:
style: |
ha-card {
--stack-card-gap: 0;
}
``
- entity: sensor.salone_temperatura
Also, I recommend using stickpin's fork of stack-in-card instead of RomRider's which has not been updated in five years. At least this one was last updated 11 months ago and doesn't need card_mod's help to remove the borders around the cards inside the stack. stickpin/stack-in-card
I didn't check all fork, but https://github.com/svemat01/stack-in-card it's a little more updated.