Hello,
does anyone could help me to change the state from “€ unknown” to “closed”.
This state is since the Gasstation is currently closed, therefore this sensor does not habe an excepted value. I could imagine that this is possible with an “if”, “then”, “else” but I don’t know the correct syntax.
type: custom:stack-in-card
cards:
- type: custom:mushroom-template-card
primary: € {{states('sensor.star_dinslakener_strasse_186_super')}}
secondary: DinslakenerStr. 186
icon: mdi:gas-station
entity: sensor.star_dinslakener_strasse_186_super
icon_color: grey
tap_action:
action: more-info
badge_icon: ''
picture: /local/pics/Star.png
- type: custom:mini-graph-card
entities:
- entity: sensor.star_dinslakener_strasse_186_super
name: Euro 95
color: rgb(var(--mush-rgb-grey))
hours_to_show: 84
hour24: true
points_per_hour: 0.2
line_width: 3
font_size: 90
animate: true
show:
name: false
icon: false
state: false
legend: false
extrema: false
fill: fade
BR
Patrick