So I have 3 mqtt temp sensors at the minute as below which are working great, however I would like to get the average temp for all three to be able to use it in a thermostat control as well as display its value as another sensor : I’ve looked at templates and can only guess that’s where i need to be but am completely lost as to where to start?
I was going somewhere along these lines but just trying to do some simple maths to start to prove concept but I can’t even get that working as I may be barking up the wrong tree!
The round doesn’t seem to be working so if anyone can give any pointers on that I’d greatly appreciate it, ant it probably isn’t the best way to do it but it works and I’m quite pleased!
This was super helpful thank you! I wanted to average some temperature sensors, and round one temperature. It took a little tweaking but wanted to add my final that is working great.
Be careful when copying the example files here - the encoding of the unit of measurement in the code above:
unit_of_measurement: "°F" and unit_of_measurement: "°C"
May not copy and paste in proper UTF-8 format and will cause HA to fail to start without producing an error log depending on your editor. This messed me up for a sleepless night until I got some help figuring out what the problem was. You can read more about it here:
Not sure if this is dependent on your editor, but I am using the same editor I have been using since I started using HA and never ran into this issue before. I raised a bug on github for it.