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