#oh there s an average method cool let me
1 messages · Page 1 of 1 (latest)
Hmmm I tried to install the minimalist fast (I haven't used it before) but it doesn't seem to work for me.
Maybe I made some mistake along the way in a hurry.
Is this working only with YAML dashboards?
Uhm I'm using minimalist, and it also works with usual sensor card
I have 24,7 and 24,37 readings, and what you wrote gives out 24,535
maybe it would be nice to add | round(3) at the end
That looks about right
but yeah. But you should be able to set rounding on entity settings now
I can't, guess I need to do it in YAML?
"This entity ('sensor.temp_average') does not have a unique ID, therefore its settings cannot be managed from the UI. See the documentation for more detail."
ideally you can add your own unique_id to many integrations including template entities.
but | round(n) in in template will work as well
yeap, let me try
{{ [states('sensor.temperature1') | float('NaN'), states('sensor.temperature2') | float('NaN')] | select('number') | average | round(3) }}
should be like this right?
yeah, but round(3) will leave 3 digits precision so you'll still end up with 24,535
yeah 3 digit is fine, I don't want more though :) Thanks for the help!
I checked why UI-Minimalist is not working with me ("UI-mode is not yet supported") so there is no way for me to setup it quickly as UI mode is what I'm using. so I'm giving that up.
But your request feels pretty simple and definitely someone should be able to provide tips for you.
I think you're mistaking me with someone else.
I think you were meant to talk with "Shadorlo" (don't wanna tag)
I didn't ever mention Minimalist :)
ups, that make sense
Yeah I was mistaking You with the @turbid frost guy
Also wasn't sure why he asked about templates out of the blue
Hey, I take note