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 ZigBeeLightDevice = require('homey-meshdriver').ZigBeeLightDevice;
class AqaraTunableBulb extends ZigBeeLightDevice {
async onMeshInit() {
this.setStoreValue('colorTempMin', 153); // 6500K = 153 Mired
this.setStoreValue('colorTempMax', 370); // 2700K = 370 Mired
await super.onMeshInit();
// enable debugging
// this.enableDebug();
// print the node's info to the console
// this.printNode();
"use strict";
const ZigBeeLightDevice = require("homey-meshdriver").ZigBeeLightDevice;
class HueAmbiance extends ZigBeeLightDevice {}
module.exports = HueAmbiance;
"use strict";
const ZigBeeXYLightDevice = require("homey-meshdriver").ZigBeeLightDevice;
class HueColor extends ZigBeeXYLightDevice {}
module.exports = HueColor;
"use strict";
const ZigBeeLightDevice = require("homey-meshdriver").ZigBeeLightDevice;
class HueWhite extends ZigBeeLightDevice {}
module.exports = HueWhite;