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;
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
*