Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'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();
'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();
'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