tinkerhub-device-hue
Version:
Support for Philips Hue lights in a Tinkerhub network
19 lines (14 loc) • 436 B
JavaScript
const Controller = require('./controller');
module.exports = class TradfriDimmer extends Controller {
static get type() {
return 'hue:tradfri-dimmer';
}
constructor(bridge, def) {
super(bridge, def);
this.withButton('on', { id: 1, long: false });
this.withButton('dimUp', { id: 2, long: false });
this.withButton('dimDown', { id: 3, long: false });
this.withButton('off', { id: 4, long: false });
}
};
;