How to use the homey-meshdriver.ZwaveDevice function in homey-meshdriver

To help you get started, we’ve selected a few homey-meshdriver examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github athombv / node-homey-meshdriver / examples / fibaroplug.js View on Github external
'use strict';

const ZwaveDevice = require('homey-meshdriver').ZwaveDevice;

/**
 * It is possible to use default system capability handlers (see: lib/zwave/system/capabilities), by registering a
 * capability without an options object (see below). There are also various standard ZwaveDevice implementations (see:
 * lib/zwave), some of them use settings and flow cards (which are optional) and can be found in
 * lib/system/(flows|settings).json.
 */
class FibaroPlugDevice extends ZwaveDevice {

	async onMeshInit() {

		// enable debugging
		this.enableDebug();

		// print the node's info to the console
		this.printNode();
github TedTolboom / com.xiaomi-mi-zigbee / node_modules / homey-meshdriver / examples / fibaroplug.js View on Github external
'use strict';

const ZwaveDevice = require('homey-meshdriver').ZwaveDevice;

/**
 * It is possible to use default system capability handlers (see: lib/zwave/system/capabilities), by registering a
 * capability without an options object (see below). There are also various standard ZwaveDevice implementations (see:
 * lib/zwave), some of them use settings and flow cards (which are optional) and can be found in
 * lib/system/(flows|settings).json.
 */
class FibaroPlugDevice extends ZwaveDevice {
	
	async onMeshInit() {
		
		// enable debugging
		this.enableDebug();
		
		// print the node's info to the console
		this.printNode();
github athombv / node-homey-meshdriver / lib / zwave / ZwaveLightDevice.js View on Github external
'use strict';

const ZwaveDevice = require('homey-meshdriver').ZwaveDevice;
const Utils = require('homey-meshdriver').Util;
const FACTORY_DEFAULT_COLOR_DURATION = 255;
let debounceColorMode;

/**
 * ZwaveLightDevice takes care of all commands used by XY Lighting devices (COMMAND_CLASS_SWITCH_COLOR).
 * Set the capabilitiesOptions "setOnDim" to false for the onoff capability
 *
 * Duration(s) can be given for:
 * - dim (SWITCH_MULTILEVEL >= V2)
 * - light_hue (SWITCH_COLOR >= V2)
 * - light_saturation (SWITCH_COLOR >= V2)
 * - light_temperature (SWITCH_COLOR >= V2)
 *
 * @extends ZwaveDevice
 * @example

homey-meshdriver

Use this module to make the creation of Z-Wave & ZigBee Homey Apps easier.

ISC
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis

Similar packages