Is there a way to set up a range of values that have 1 status and then get that device string through script?
For instance say I have a device with 1 through 33 which is low, 34 through 36 which is medium, and 67 though 100 which is high.
I have done this by creating a new Range Value and setting the "prefix" to the status I want and telling to not include the values. I also set this range as status only. This works for the display screen, but I want to access this "status" from scripting. I tried hs.deviceString, but it doesn't return the status only an empty string. Is there a way to easily do this without having to get the value in script and then check it against hard coded ranges (is x >= lowPoint and x<= highPoint)?
For instance say I have a device with 1 through 33 which is low, 34 through 36 which is medium, and 67 though 100 which is high.
I have done this by creating a new Range Value and setting the "prefix" to the status I want and telling to not include the values. I also set this range as status only. This works for the display screen, but I want to access this "status" from scripting. I tried hs.deviceString, but it doesn't return the status only an empty string. Is there a way to easily do this without having to get the value in script and then check it against hard coded ranges (is x >= lowPoint and x<= highPoint)?
Comment