#oh there s an average method cool let me

1 messages · Page 1 of 1 (latest)

timber aurora
#

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?

wooden hamlet
#

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

timber aurora
#

That looks about right

#

but yeah. But you should be able to set rounding on entity settings now

wooden hamlet
#

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."

timber aurora
#

ideally you can add your own unique_id to many integrations including template entities.

but | round(n) in in template will work as well

wooden hamlet
#

yeap, let me try

#

{{ [states('sensor.temperature1') | float('NaN'), states('sensor.temperature2') | float('NaN')] | select('number') | average | round(3) }}

should be like this right?

timber aurora
#

yeah, but round(3) will leave 3 digits precision so you'll still end up with 24,535

wooden hamlet
#

yeah 3 digit is fine, I don't want more though :) Thanks for the help!

timber aurora
#

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.

wooden hamlet
#

I didn't ever mention Minimalist :)

timber aurora
#

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

turbid frost
#

Hey, I take note