OpenZWave / node-openzwave-shared

OpenZWave addon for Node.js (all versions) including management and security functions
Other
199 stars 113 forks source link

Pairing #224

Closed wmmihaa closed 6 years ago

wmmihaa commented 6 years ago

Hi, I bought a couple of Z-Wave enabled plugs (Telldus) along with a Razberry sheild. I installed the lot and got starting trying to getting it working using node.js. However, at the time I failed.

A couple of days ago I found this repo (thanks), and thought I'd give it another go. -Everything worked great, and i could control the plug that I paired in my first attempt (using z-wave.me).

The problem is that the OZW client never finds my other plug, perhaps because it was never paired in my first attempt. The plug is blinking indicating it's waiting to get paired.

Question: Whould I need to pair the plug using some other tool, such as z-wave.me, or is it possible to do using only OZW?

Thanks

jodyalbritton commented 6 years ago

You need to have a method somewhere in your code for putting the controller into inclusion mode. In my case I am using an express server and I created a couple of endpoints that I could hit to add/remove nodes.

// POST to add a node
router.route('/commands/add')
  .post(function (req, res, next) {
    nodeServer.zwave.addNode()
    console.log('adding')
    res.send(200)
  })
// POST to remove a node
router.route('/commands/remove')
  .post(function (req, res, next) {
    nodeServer.zwave.removeNode()
    console.log('removing')
    res.send(200)
  })
ekarak commented 6 years ago

resolving - I maybe need to implement some sort of forum for user guidance questions like this