Uh-oh, @bravenel while I had not anticipated my workflow to yield anything out of the ordinary, it seems to have done so anyway, to wit:
(a) I created a Hub Variable, called TempAvgVar, to receive the calculated value from the actions shown immediately above; (OK)
(b) I added a "Set" action which copies the value of acTempVar (a local RM variable) to TempAvgVar (the Hub var); (OK)
(c) Expected values would typically be in the range 0 to 4, and characteristically hover around 0.3 - 0.7; (OK)
(d) However, the very next time(s) that the Rule runs - upon a "change" to any of the watched sensor values - I'm noticing that TempAvgVar gets set to a value of 72.5 (seemingly equal to one of the sensors?!); (NOT OK)
(e) On subsequent refreshes the value of TempAvgVar will again increase, to 213.4 (seemingly the sum of all three sensors?!) and settle; (NOT OK)
Confoundingly, a check of the Logs (pasted below) for the last few iterations shows the value blowing up, but not always matching what I see in the Settings ► Hub Variables ► Refresh dialogue. Just wanted you to know:
app:1172021-11-15 03:20:02.636 pm infoAction: Set TempAvgVar to acTempVar(73.1)
app:1172021-11-15 03:20:02.607 pm infoAction: Set acTempVar to (acTempVar(219.3) / 3.0)
app:1172021-11-15 03:20:02.561 pm infoAction: Set TempAvgVar to acTempVar(146.5)
app:1172021-11-15 03:20:02.539 pm infoAction: Set acTempVar to (acTempVar(146.5) + senTempMBR(72.8))
app:1172021-11-15 03:20:02.515 pm infoAction: Set TempAvgVar to acTempVar(73.1)
app:1172021-11-15 03:20:02.497 pm infoAction: Set acTempVar to (acTempVar(219.3) / 3.0)
app:1172021-11-15 03:20:02.481 pm infoAction: Set acTempVar to (senTempHBath(71.9) + senTempKitchen(74.6))
app:1172021-11-15 03:20:02.453 pm infoAction: Set acTempVar to (acTempVar(219.3) / 3.0)
app:1172021-11-15 03:20:02.436 pm infoAction: Set acTempVar to (acTempVar(146.5) + senTempMBR(72.8))
app:1172021-11-15 03:20:02.420 pm infoAction: Set acTempVar to (acTempVar(146.5) + senTempMBR(72.8))
app:1172021-11-15 03:20:02.395 pm infoAction: Set senTempMBR to absolute(senTempMBR(72.8))
app:1172021-11-15 03:20:02.374 pm infoAction: Set acTempVar to (senTempHBath(71.9) + senTempKitchen(74.6))
app:1172021-11-15 03:20:02.357 pm infoAction: Set acTempVar to (senTempHBath(71.9) + senTempKitchen(74.6))
app:1172021-11-15 03:20:02.295 pm infoAction: Set senTempKitchen to absolute(senTempKitchen(74.6))
app:1172021-11-15 03:20:02.276 pm infoAction: Set senTempMBR to absolute(senTempMBR(-72.8))
app:1172021-11-15 03:20:02.260 pm infoAction: Set senTempMBR to absolute(senTempMBR(-72.8))
app:1172021-11-15 03:20:02.243 pm infoAction: Set senTempHBath to absolute(senTempHBath(71.9))
app:1172021-11-15 03:20:02.227 pm infoAction: Set senTempKitchen to absolute(senTempKitchen(-74.6))
app:1172021-11-15 03:20:02.208 pm infoAction: Set senTempKitchen to absolute(senTempKitchen(-74.6))
app:1172021-11-15 03:20:02.195 pm infoAction: Set senTempMBR to (senTempMBR(0.2) - acTemp(73))
app:1172021-11-15 03:20:02.175 pm infoAction: Set senTempHBath to absolute(senTempHBath(-71.9))
app:1172021-11-15 03:20:02.160 pm infoAction: Set senTempHBath to absolute(senTempHBath(-71.9))
app:1172021-11-15 03:20:02.146 pm infoAction: Set senTempKitchen to (senTempKitchen(-1.6) - acTemp(73))
app:1172021-11-15 03:20:02.126 pm infoAction: Set senTempMBR to (senTempMBR(73.2) - acTemp(73))
app:1172021-11-15 03:20:02.107 pm infoAction: Set senTempMBR to (senTempMBR(73.2) - acTemp(73))
app:1172021-11-15 03:20:02.089 pm infoAction: Set senTempHBath to (senTempHBath(1.1) - acTemp(73))
app:1172021-11-15 03:20:02.072 pm infoAction: Set senTempKitchen to (senTempKitchen(71.4) - acTemp(73))
app:1172021-11-15 03:20:02.055 pm infoAction: Set senTempKitchen to (senTempKitchen(71.4) - acTemp(73))
app:1172021-11-15 03:20:02.035 pm infoAction: Set senTempMBR to Bedroom Temperature(73.2)
app:1172021-11-15 03:20:02.020 pm infoAction: Set senTempHBath to (senTempHBath(74.1) - acTemp(73))
app:1172021-11-15 03:20:02.004 pm infoAction: Set senTempHBath to (senTempHBath(74.1) - acTemp(73))
app:1172021-11-15 03:20:01.981 pm infoAction: Set senTempKitchen to Kitchen Temperature(71.4)
app:1172021-11-15 03:20:01.963 pm infoAction: Set senTempMBR to Bedroom Temperature(73.2)
app:1172021-11-15 03:20:01.946 pm infoAction: Set senTempMBR to Bedroom Temperature(73.2)
app:1172021-11-15 03:20:01.930 pm infoAction: Set senTempHBath to Hall Lav Temperature(74.1)
app:1172021-11-15 03:20:01.913 pm infoAction: Set senTempKitchen to Kitchen Temperature(71.4)
app:1172021-11-15 03:20:01.896 pm infoAction: Set senTempKitchen to Kitchen Temperature(71.4)
app:1172021-11-15 03:20:01.890 pm infoAction: Set acTemp to Thermostat Temperature(73)
app:1172021-11-15 03:20:01.881 pm infoAction: Set senTempHBath to Hall Lav Temperature(74.1)
app:1172021-11-15 03:20:01.806 pm infoAction: Set senTempHBath to Hall Lav Temperature(74.1)
app:1172021-11-15 03:20:01.791 pm infoAction: Set acTemp to Thermostat Temperature(73)
app:1172021-11-15 03:20:01.773 pm infoAction: Set acTemp to Thermostat Temperature(73)
app:1172021-11-15 03:20:01.415 pm infoAction: Set TempAvgVar to acTempVar(1.066667)
app:1172021-11-15 03:20:01.386 pm infoAction: Set acTempVar to (acTempVar(3.2) / 3.0)
app:1172021-11-15 03:20:01.355 pm infoAction: Set acTempVar to (acTempVar(2.8) + senTempMBR(0.4))
app:1172021-11-15 03:20:01.321 pm infoAction: Set acTempVar to (senTempHBath(1) + senTempKitchen(1.8))
app:1172021-11-15 03:20:01.290 pm infoAction: Set senTempMBR to absolute(senTempMBR(0.4))
app:1172021-11-15 03:20:01.262 pm infoAction: Set senTempKitchen to absolute(senTempKitchen(-1.8))
app:1172021-11-15 03:20:01.234 pm infoAction: Set senTempHBath to absolute(senTempHBath(1))
app:1172021-11-15 03:20:01.203 pm infoAction: Set senTempMBR to (senTempMBR(73.4) - acTemp(73))
app:1172021-11-15 03:20:01.130 pm infoAction: Set senTempKitchen to (senTempKitchen(71.2) - acTemp(73))
app:1172021-11-15 03:20:01.090 pm infoAction: Set senTempHBath to (senTempHBath(74) - acTemp(73))
app:1172021-11-15 03:20:01.061 pm infoAction: Set senTempMBR to Bedroom Temperature(73.4)
app:1172021-11-15 03:20:01.037 pm infoAction: Set senTempKitchen to Kitchen Temperature(71.2)
app:1172021-11-15 03:20:01.013 pm infoAction: Set senTempHBath to Hall Lav Temperature(74.0)
app:1172021-11-15 03:20:00.990 pm infoAction: Set acTemp to Thermostat Temperature(73)
IMPORTANT OBSERVATION: If I go back into the RM rule and manually click "Run Actions", then "Done" and return to Settings > Hub Variables to inspect the value of TempAvgVar, it is (as expected) back to a nominal value of 0.96667! And from all appearances, it has remained nominal since. Bizarro.
Any insights? Do RM actions run in sequential order? (Log suggests otherwise.) Are variable assignments possibly being passed by reference** instead of contained value? Potential bug? Is computing local RM variables in-place like this a risky practice??
Hopefully this feedback makes sense. Didn't know where else to post.
**This could explain why intermediate values listed in the Log don't match what's shown in the RM UI.