Hi,
i would like to react on temperature values from a sensor by comparing them to threshold values from a dashboard like this:
temperature = msg.payload;
if (temperature > threshold){
return {payload: "over threshold"
}
I expected to be able to do that with a function node, but for that i would need a second input for the dynamic threshold value from my dashboard.
And i guess, as node-red is flow driven, this is not possible by definition.
But how can i implement this?
Thanks