HI,
I have this sensor:
sensor.schimmel_sensor 62
with attributes:
Dewpoint: 8.78837161349112
Est. Crit. Temp: 15.89655172413793
unit_of_measurement: %
friendly_name: Schimmel sensor
custom_ui_state_card: state-card-custom-ui
icon: mdi:blur-radial
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
fyi:
this is the sensor:
##########################################################################################
# Moldindicator
##########################################################################################
# calibration_factor = (temp_indoor - temp_outdoor) / (temp_criticalpoint - temp_outdoor)
# momenteel ingesteld op (17-6,2)/15,5-6,2)
- platform: mold_indicator
name: Schimmel sensor
indoor_temp_sensor: sensor.temperatuur_living
indoor_humidity_sensor: sensor.luchtvochtigheid_living
outdoor_temp_sensor: sensor.br_temperature
calibration_factor: 1.16
and this the sensor customization through @andrey 's Custom-ui :
sensor.schimmel_sensor:
icon: mdi:blur-radial
templates:
theme: >
if (attributes.state > 60) return 'red'; else return 'default';
extra_badge:
- entity_id: states.sensor.schimmel_sensor_Dewpoint
- entity_id: states.sensor.schimmel_sensor_Est._Crit._Temp
Please have a look,
Marius