I'm working on a driver with a few commands that will take a number:
command "setNozzleTemp", [[name: 'nozzleTemp', type: "NUMBER", range: 0..300, description: "Enter the desired nozzle temp"]]
command "setBedTemp", [[name: 'bedTemp', type: "NUMBER", range: 0..110, description: "Enter the desired bed temp"]]
command "setPartCoolingFanSpeed", [[name: 'speed', type: "NUMBER", range: 0..100, description: "Enter the desired fan speed"]]
command "setAuxFanSpeed", [[name: 'speed', type: "NUMBER", range: 0..100, description: "Enter the desired fan speed"]]
command "setChamberFanSpeed", [[name: 'speed', type: "NUMBER", range: 0..100, description: "Enter the desired fan speed"]]
I don't see anything in the documentation about a "range" option, but have seen a few examples where it's being used. There was even one post where someone couldn't get a driver to save because of the range option.
So, assuming this is supposed to work, it's not. I can continue to input whatever number I want outside the range and it's accepted and passed to the command function.
I know I can write a simple condition in the function to catch errant values, but would rather just use the option if possible.
Am I missing something? Was this maybe removed in a firmware update at some point? Is it broken?