Looks like it’s registering your device and then having some other issues.
Are you using node version 8.6 as recommended by MATRIX Core?
It could be helpful to try registering the device using this code @Carlos wrote for our zigbee light bulb here.
For our zigbee bulb demo, we use this code to create toggle functions for the bulb once the device is registered.
You could try adding the following code to at the end of the
toggleZigbee.js file to see if it successfully toggles your switch every 2 seconds.
Let me know how it goes. If it works, you may be able to use the
toggleZigbee.js file as a template to create some other functions that help you control your zigbee switch.