Gerade habe ich festgestellt das in meiner Swipe Card der Card Mod Code nicht mehr funktioniert. Ich weiß leider nicht wie lange das schon so ist.
Mein Code sollte richtig sein da ich mir sicher bin das es auch schon entsprechend korrekt angezeigt wurde.
type: custom:swipe-card
parameters:
autoplay:
delay: 5000
effect: coverflow
coverflowEffect: null
rotate: 60
slideShadows: false
cards:
- type: custom:mini-graph-card
card_mod:
style: |
ha-card {
--ha-card-background: rgba(0,0,0,0.3);
--ha-card-border-radius: 15px;
--ha-card-border-color: transparent;
}
entities:
- sensor.lichterkette_switch_0_power
hour24: true
decimals: 1
smoothing: true
hours_to_show: 24
points_per_hour: 30
line_width: 3
animate: true
name: Lichterkette
update_interval: 1
show:
labels: false
color_thresholds:
- value: 0
color: "#00FF00"
- value: 500
color: "#f39c12"
- value: 600
color: "#d35400"
- value: 800
color: "#c0392b"
color_thresholds_transition: smooth
- type: custom:mini-graph-card
card_mod:
style: |
ha-card {
--ha-card-background: rgba(0,0,0,0.3);
--ha-card-border-radius: 15px;
--ha-card-border-color: transparent;
}
entities:
- sensor.shelly1pmminig3_34b7daca8144_switch_0_power
hour24: true
decimals: 1
smoothing: true
hours_to_show: 24
points_per_hour: 20
line_width: 3
animate: true
name: Rocky
update_interval: 1
show:
labels: false
color_thresholds:
- value: 0
color: "#00FF00"
- value: 500
color: "#f39c12"
- value: 600
color: "#d35400"
- value: 800
color: "#c0392b"
color_thresholds_transition: smooth
- type: custom:mini-graph-card
card_mod:
style: |
ha-card {
--ha-card-background: rgba(0,0,0,0.3);
--ha-card-border-radius: 15px;
--ha-card-border-color: transparent;
}
entities:
- sensor.shellyplusplugs_e86beaea9818_switch_0_power
hour24: true
decimals: 1
smoothing: true
hours_to_show: 24
points_per_hour: 20
line_width: 3
animate: true
name: Geschirrspüler
update_interval: 1
show:
labels: false
color_thresholds:
- value: 0
color: "#00FF00"
- value: 500
color: "#f39c12"
- value: 600
color: "#d35400"
- value: 800
color: "#c0392b"
color_thresholds_transition: smooth
- type: custom:mini-graph-card
card_mod:
style: |
ha-card {
--ha-card-background: rgba(0,0,0,0.3);
--ha-card-border-radius: 15px;
--ha-card-border-color: transparent;
}
entities:
- sensor.kuhlschrank_switch_0_power
hour24: true
decimals: 1
smoothing: true
hours_to_show: 24
points_per_hour: 20
line_width: 3
animate: true
name: Kühlschrank
update_interval: 1
show:
labels: false
color_thresholds:
- value: 0
color: "#00FF00"
- value: 500
color: "#f39c12"
- value: 600
color: "#d35400"
- value: 800
color: "#c0392b"
color_thresholds_transition: smooth
- type: custom:mini-graph-card
card_mod:
style: |
ha-card {
--ha-card-background: rgba(0,0,0,0.3);
--ha-card-border-radius: 15px;
--ha-card-border-color: transparent;
}
entities:
- sensor.gefrierschrank_switch_0_power
hour24: true
decimals: 1
smoothing: true
hours_to_show: 24
points_per_hour: 20
line_width: 3
animate: true
name: Gefrierschrank
update_interval: 1
show:
labels: false
color_thresholds:
- value: 0
color: "#00FF00"
- value: 500
color: "#f39c12"
- value: 600
color: "#d35400"
- value: 800
color: "#c0392b"
color_thresholds_transition: smooth
- type: custom:mini-graph-card
card_mod:
style: |
ha-card {
--ha-card-background: rgba(0,0,0,0.3);
--ha-card-border-radius: 15px;
--ha-card-border-color: transparent;
}
entities:
- sensor.waschmaschine_power
hour24: true
decimals: 1
smoothing: true
hours_to_show: 24
points_per_hour: 20
line_width: 3
animate: true
name: Waschmaschine
update_interval: 1
show:
labels: false
color_thresholds:
- value: 0
color: "#00FF00"
- value: 500
color: "#f39c12"
- value: 600
color: "#d35400"
- value: 800
color: "#c0392b"
color_thresholds_transition: smooth
Zumindest auf der github seite der swipe card unter issues ist nichts darüber zu finden. Hat noch jemand das Problem?