I have a number of temperature sensors around the house, in one form or another. What I’d like to do is find the average temperature for a given number of sensors. So for example I could display the average Ground floor temperature by dividing the sum of all the temperature sensors on the Ground floor. I know is not overly scientific but it would suit my requirements.

Is there a way of doing maths against variables? Examples would be greatly appreciated. I’ve tried searching the forum but haven’t managed to find what I’m looking for.

You can do arithmetic in Rules, I know little about that and crib from other people’s examples (typically temperature and other sensor reading manipulations). More exotic maths (trigonometry etc.) requires imports of maths libraries I believe. Example