I am struggling to create a separate extra badge to show up the dewpoint and Est. Crit. Temp.
“{{states.sensor.schimmel_sensor.attributes.friendly_name}}” results in Schimmel sensor, which is correct
“{{states.sensor.schimmel_sensor.attributes.Dewpoint}}” results in 8.78837161349112, also correct
(btw dewpoint dienst work, case sensitive it is)
“{{states.sensor.schimmel_sensor.attributes.Est._Crit._Temp}}” doesn’t work, neither does
{{states.sensor.schimmel_sensor.attributes.Est.__Crit.__Temp}}
error: Error rendering template: UndefinedError: 'mappingproxy object' has no attribute 'Est'
How would i have the sensor show up the attribute Est. Crit. Temp
to get back to the customizing above, just reporting back this works for now, waiting for the sensor itself to get an update on the attributes:
my first attempts were wrong on 2 aspects: Dewpoint is an attribute of the sensors itself, so extra_badge needed to be ‘attribute’ and not ‘entity_id: state’ . (when the attribute Est. Crit. Temp. will be changed into est_crit_temp or something comparable we’ll be able to use that) For now ive corrected the second badge into a real sensor using the entity_id of the outside temperature, leading to:
coloring the other sensors with theming too from red to green, still hoping to hear about the ‘tricks’ to get a flashing alert signal, i guess by changing the theme every second or so?
In HA 0.69.1, this worked for me (sorry, without proper spacing):
sensor.ez_schimmel:
custom_ui_state_card: state-card-custom-ui
friendly_name: EZ Schimmel
icon: mdi:blur-radial
extra_badge:
- attribute: dewpoint
unit: Tau
- attribute: estimated_critical_temp
unit: “°C”
templates:
theme: >
if (entity.state > 60) return ‘red’; else return ‘default’;
Coloring seems to need some work, though, as it is shown red even at 36%…
Groetjes!
Peter