UNPKG

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.

26 lines (16 loc) 623 B
import { type Family, CompositeDevice } from '../../ISY.js'; import 'winston'; import { ColorHueSat, ColorXY, OnOffLevel } from './Generated/index.js'; const nodes = { onOff: OnOffLevel, colorHS: ColorHueSat, colorTemp: ColorXY }; export class ColorTemperatureLight extends CompositeDevice.of<Family.ZigBee, typeof nodes>(nodes, { onOff: 103, colorHS: 106, colorTemp: 108, }) {} export namespace ColorTemperatureLight { export const Nodes = nodes; export const Class = ColorTemperatureLight; export const OnOff = nodes.onOff; export const ColorHS = nodes.colorHS; export const ColorXY = nodes.colorTemp; }