isy-nodejs
Version:
Node.js wrapper for ISY interface including websockets for change notifications. Fork of isy-js by Rod Toll. Designed to be used in a node.js application.
18 lines (10 loc) • 428 B
text/typescript
import { CompositeDevice, type Family } from '../../ISY.js';
import 'winston';
import { OnOffLevel } from './Generated/index.js';
const nodes = { onOffLevel: OnOffLevel };
export class DimmableLight extends CompositeDevice.of<Family.ZigBee, typeof nodes>(nodes, { onOffLevel: 103 }) {}
export namespace OnOffLight {
export const Nodes = nodes;
export const Class = OnOffLight;
export const OnOff = nodes.onOffLevel;
}