thomasloven / lovelace-auto-entities

🔹Automatically populate the entities-list of lovelace cards
MIT License
1.27k stars 116 forks source link

Compare two temperatures? #305

Closed elcriuz closed 1 year ago

elcriuz commented 2 years ago

I simply can't wrap my head around how to get this working: I have a couple of smart TRVs set up to show me current temperature and the target temperature. Is there a way to auto populate auto-entities to show me the difference of these values?

I got it working with one TRV like this: {{(state_attr("climate.t001s", "current_temperature") |float - state_attr("climate.t001s", "temperature")|float)|round(2)}}

ildar170975 commented 2 years ago
  1. Either create a template sensor & then display it in Entities.
  2. Or use template-entity-row with "state = difference".