I'm not sure if this is me seeking rule making advice or a feature request for more robust variable math, or something else, but I was wondering if anyone knows of a more efficient way to accomplish what I'm doing in this rule. All I want is for a virtual humidity sensor to be the average of 2 real humidity sensors, but it seems like a ton of steps to do it:
3 things that would be nice:
- If you could do multiple "variable math" operations on 1 line (so rather rather than having to create 'C' you could just set the variable to (A+B)/2;
- if you could set the device attribute to variable math rather than having to create a variable to store the value and then sending that value to the device (i.e. combine the last 2 lines of this rule);
- if variable math included an average function.