Expression
3 min
the expression processor evaluates a custom mathematical formula against your input tag values, for example converting a temperature reading from celsius to fahrenheit or calculating a custom formula for furnace pressure why use expression use this processor when you need to perform a calculation on one or more incoming values, rather than writing custom code to do the math how it works connect each input tag you want to use and give its connection a variable name, for example a reference that variable in your expression as a value , for example sin(a value) or a value 100 if you need more than one input, give each connection its own variable name and combine them in a single expression, for example a value + b value for example, this expression converts a celsius reading to fahrenheit (celsius value 9/5) + 32 if you're combining multiple inputs, use values type connections parameters parameter details expression the mathematical expression to evaluate, using the variable names you defined for each connected input output field name the field name for the evaluated result in the output payload timer interval sets a timer (in milliseconds) that continuously publishes the output when no event triggers the expression enter 0 to disable the timer pass through value determines whether the processor's output is the evaluated expression result or the original unchanged input value related topics use the expression processor function docid\ gld8y14r9wrd0cc7vssfg