I'm trying to track down some unexpected behavior in my plugin. I thought that deviceStopComm was called for a device when that device is disabled in the Indigo UI, and deviceStartComm was called when the device is enabled in the Indigo UI. However, enabling/disabling seems to be calling deviceUpdated (as I expect) but not deviceStartComm or deviceStopComm. I can write some additional code to deal with this, but I wanted to make sure there isn't something else going on. Should deviceStopComm get called when a device is disabled, and deviceStartComm when it is later enabled?
Thanks
UPDATE:
My bad! I overrode deviceUpdated() without implementing the checks for changes to the device Comm properties!
For anyone who might be interested:
Add:
indigo.PluginBase.deviceUpdated(self, origDev, newDev)
To:
deviceUpdated() as defined in my plugin
and everything is good again.