Maybe someone can point me in the right direction on this. I've checked the docs and the forums and can't seem to find a solution. Though it's been a while since I've coded for Indigo so it may just be that I'm a little rusty.
I have a few plugins that I'd like to improve with new features. These improvements will need to add some states to the plugin's Indigo devices. I can't seem to find a way for the plugin to add the new states to the Indigo device automatically. The only way I've found is to double-click on the device and then dismiss the device dialog, then Indigo automatically adds the new states.
Is there a clean way for the plugin to check if a particular state exists in the device? And if not for it to call a method to tell Indigo to read the Devices.xml and add the new states?
I'm sure there's a simple solution here and I've just overlooked it.
Thanks!