@pmouli/isy-matter-server
Version:
Service to expose an ISY device as a Matter Border router
31 lines (28 loc) • 745 B
text/typescript
import { ColorTemperatureLightDevice, ExtendedColorLightDevice } from '@matter/node/devices';
import { add, MappingRegistry, type EndpointMapping } from './MappingRegistry.js';
//Family: Family.Insteon,
//@ts-ignore
let map = add({ Family: 'ZigBee' }).add({
ExtendedColorLight: {
deviceType: ColorTemperatureLightDevice,
mapping: {
colorControl: {
attributes: {
colorTemperatureMireds: 'colorXY.colorTemperatureMired'
}
},
onOff: {
attributes: {
onOff: { driver: 'onOff.status', converter: 'Percent.Boolean' }
}
},
levelControl: {
attributes: {
currentLevel: { driver: 'onOff.status', converter: 'Percent.LightingLevel' }
}
}
}
}
});
//@ts-ignore
MappingRegistry.register(map);