Add Sensor Value to Variable OR Average Function

I calculate average temperatures and use them in Rules. As such, I frequently need to:

variableX = variableX + sensorValue

but the UI doesn't appear to support this function so instead:

variableTemp = sensorValue

variableX = variableX + variableTemp

Can you please add the ability to add a sensor value to a variable?

Alternatively, an average function would be wonderful.

Thx

Have you considered using Bruce's averageTemp app?

I wasn't aware of it, thank you.

Still would have to copy the value of the resultant virtual temperature sensor to a variable to do things like calculate delta between outside and inside temps so this helps but adding a sensor value to a variable is likely still beneficial.

I am still frequently having to copy a sensor value to a local variable and then perform variable math.

Would be great if there was a more generic Math capability with a Sensor/Variable switch to enable us to choose the terms we wanted to use in our Math equation.