Mark,
I have a plugin that I want to use to support an external device instead of a script. Should that be possible? I struggle with two parts of this.
Firstly it seems that the syntax for providing the external receive data function expect a script name and function. If there is a way to provide these values so that it is a plugin, I have not been able to figure it out. What I have done for the moment is to provide a script that just forwards the data to the plugin. I don't really like having this script be there.
Even with that script, I still assumed that I could register the script from within my plugin. It doesn't seem like it takes effect. I have coded another script function to only call my plugin to register when the scripts register function gets called. I assume there must be some kind of timing issue. Perhaps the insteon plugin needs to be in a certain state before it can take an external registration. I tried looking for the insteons plugins InterfaceStatus to go to 0 before sending the registration, but this didn't seem to help.
I have a plugin that I want to use to support an external device instead of a script. Should that be possible? I struggle with two parts of this.
Firstly it seems that the syntax for providing the external receive data function expect a script name and function. If there is a way to provide these values so that it is a plugin, I have not been able to figure it out. What I have done for the moment is to provide a script that just forwards the data to the plugin. I don't really like having this script be there.
Even with that script, I still assumed that I could register the script from within my plugin. It doesn't seem like it takes effect. I have coded another script function to only call my plugin to register when the scripts register function gets called. I assume there must be some kind of timing issue. Perhaps the insteon plugin needs to be in a certain state before it can take an external registration. I tried looking for the insteons plugins InterfaceStatus to go to 0 before sending the registration, but this didn't seem to help.
Comment