Need flow to output messages based on input from dashboard

For the range you could use a switch node:

image

Maybe start with fixed values first and once this is working add the dashboard components / features.

What have you tried so far?

Edit: Reading my answer above is maybe not what you are trying to do. But I think the switch node can help to solve your problem.