Open jarrah31 opened 2 years ago
I'm using this in label for showing temperature and humidity
label: >
[[[
const temperature = Math.round(states['sensor.multisensor_temperature'].state * 10) / 10;
const humidity = Math.round(states['sensor.multisensor_humidity'].state);
return `🌡️${temperature}°C 💧${humidity}%`;
]]]
Is your enhancement request related to a problem? Please describe. I have a general room status group that I assign as the main entity for the room_card so that the button is red if something is left on, or green if all is ok. This group entity isn't compatible with either
label_use_temperature
orlabel_use_brightness
variables, so I would like to specify another entity to display the room temperature in the label field when the main entity doesn't contain any temperature attributes.Describe the solution you'd like I propose the ability to specify a different entity variable to display the temperature in the label field. I have worked out the following code to do this: (label field from card_room.yaml)
Specifying the variable in the card: