Can someone double check my logic


#1

So i have this setup to average the temperature of 4 sensors located in the center of my house. Can someone double check this and make sure it looks “correct”? It SEEMS to be working. But had a hell of time getting to this point. Any help, suggestions appreciated!


#2

what you have looks good! you could change your Housetemp variable to an integer. then your setTemperature command could just the variable, instead of trying to convert to a string

OR…
if you create a global variable named @devices and put all your devices in that variable , this needs to be a device type global variable.

you could try something like this:

by doing this way, if you change, or add more devices you want to average, you just adjust that global variable. in addition you can use that global variable in other pistons too.


#3

Awesome! Thank you!