homey-agressive-zigbee

1.0.2 • Public • Published

homey-agressive-zigbee

Zigbee device driver for Homey allowing more agressive polling

Usage:

Step 1: Adding the library into your project

npm install homey-agressive-zigbee

Step 2: Add a coordinator to your app

// in app.js
const { Coordinator } = require('homey-agressive-zigbee')

class MyApp extends Homey.App {
  onInit() {
    ...
		this.coordinator = new Coordinator()
    ...
  }
  ...
}

Step 3: Create device by inheriting from ZigBeeDevice

// in device.js
const { ZigBeeDevice } = require('homey-agressive-zigbee')

class MyDevice extends ZigBeeDevice {
  ...
}

Step 4: Implement the device driver the same way you did with the homey-meshdriver package, exept that you can also implement onTrigger to catch changes in the capabilities

// in device.js
const { ZigBeeDevice } = require('homey-agressive-zigbee')

class MyDevice extends ZigBeeDevice {
  ...
  onTrigger(capabilityId, value) {
    // your code here
  }
}

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i homey-agressive-zigbee

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    10.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • copycat1024