325xi:Do you mind to explain how difficult is it to set it up using SDK? I'm Java guy, not .Net, so please be gentle.
I'm not a C# or VB programmer either. I just hacked one of the C# examples that comes with the SDK.
You'll find sample code that declares a controller of type ZWaveController, and then connects to that controller:
controller = new ControlThink.ZWave.ZWaveController();
controller.Connect();
Of course, there's exception handling in there in case it can't find your ZWave dongle.
Once you're connected, you can access an individual device by first declaring it and then getting it by its node number(node 14 in this case):
ControlThink.ZWave.Devices.ZWaveDevice doorSensor = null;
doorSensor = controller.Devices.GetByNodeID(Convert.ToByte(14));
Now that you've got your sensor, you can clear it's association groups (group 1 here), and you can add a target device(node 2) to the sensor's association group:
doorSensor.Groups[1].Clear();
ControlThink.ZWave.Devices.ZWaveDevice targetDevice = null;
targetDevice = controller.Devices.GetByNodeID(Convert.ToByte(2));
doorSensor.Groups[1].Add(targetDevice);
Note: Adding a device association to a sensor will also transfer to that sensor's routing table a return route to the associated device. So be sure to run the network optimization/repair routine in ThinkEssentials before adding any associations.