Read input helper as variable in flow node?

I’ve got some input_helpers that are numbers, and a Dexcom blood glucose sensor.

What I’m trying to do is a simple statement, whereby when the sensor updates, I run it through a switch node, and do a higher or lower against an input_helper value, but I’m unsure how to do this?

I’m also open to doing this in a function node if its easier

image

First ensure that the output of your state node (to the payload attribute) is number rather than string.

Then you can e.g. < 200 and > 300 in that dialog you screenshot and shared, which should send e.g. the message to the first output if it is less than 200, and to the second output if it is more than 300.

Not quite what I was after, as that’s just comparing against normal static values.
What I ended up doing was this:


image

1 Like

LGTM! Congrats.