Just so there isn't any confusion on what I'm asking, see the attached screenshot for what the new Plug & Play section of the ZWave device template (1754) should look like.
The intent of the script is two-fold.
1. It will allow the Tricklestar 300ZW ZWave device to be detected and automatically added to LinuxMCE
2. It will not add a ZWave device when an ordinary USB/serial adapter is added to the system.
For this to work correctly,
both the
Vendor Model ID and the
PNP detection script need to be added to the Plug & Play section of the device template. If only the
Vendor Model ID is added there is a risk of similar Serial devices being incorrectly detected as a ZWave interface. If only the
PNP detection script is added, the 300ZW ZWave device will never get detected.
If my understanding of how the PnP plugin works is correct, using both the
Vendor Model ID and the
PNP detection script should cause LinuxMCE to run the
PNP detection script any time a device with
Vendor Model ID 067b2303 is plugged in. If the detection script determines this is a ZWave interface, it'll inform LinuxMCE to add a new ZWave device using the ZWave template. If the detection script cannot determine if this is a ZWave device, it is supposed to fail gracefully and let LinuxMCE know that this device is NOT a ZWave interface. In the case of this script failing, LinuxMCE should choose another device template that also uses the 067b2303
Vendor Model ID.
I'm able to verify that one half of this is working properly: that the script automatically detects my 300ZW dongle as a ZWave device. But I don't have any USB/Serial adapters to test to make sure the script fails gracefully, not adding a ZWave device, when a pl2303 USB/Serial adapter is added to the system.
If you can test that this script works for either of its intended purposes, please post any /var/log/pluto/*ZWave.sh* log files that get created when LinuxMCE does its auto-detection. That will help me know whether or not the script worked properly. Thanks in advance for anyone who is able to test this!!
BTW: I'm basing all this off what is described on the
wiki page for the Plug&Play plugin. If that page is out of date, please let me know.