Is there a way to get state names from a device? For instance if I have a custom state called "foo" and have defined it in the plugin as "Value of Foo", is there a way I can read an indigo.devices device and pull that description out? Think triggers, when you pull up a device in the trigger list it doesn't show "foo", it shows "Value of Foo" and I would like to replicate that in my plugins so when I'm looking at device states I can present to the user the names of the states rather than the variable name itself.
I know that I can get the variable names from dev.states, is there a dev.statename or something like that? Or maybe a lookup "get name for state dev.states["foo"]"?