Average temperature


Hello team.

On a C8 pro latest sw version, I would like to have one figure, build on the temperature over the latest 24 hours. I think that the average of 24 points would be fine, meaning when a new is adopted the oldest should get out. I would like to use it for some heating control in our house
Thanks

BR Ullum

There is a configurable Average Temperature app on Hubitat’s GitHub. That’s what I use for this. Also a Temperature Max-Min app.

thx, I will give it a try later

1 Like

Does that do a running average for one device?

you can set how many events to use for the average

Ah, I tried it and yes, it works well with one device. Handy.

For @ullum, this is the link:

2 Likes

I also use the temperature max/min app for my outdoor Hue motions. I use the minimum temp for outdoor temperature so I am always getting a reading in the shade. The 2 could be combined for inside use if one had quite a few sensors.

I found a use for this app, but my sensors report temp with two decimal places and then the app rounds it off to one.

To fix that, I changed line 73 to use two digits to round to:

return result.toDouble().round(2)

Just FYI.

1 Like