Skip to content

Commit

Permalink
fix: Support color temp for Namron 1402768 @uphillbattle Koenkk/zigbe…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Oct 30, 2023
1 parent a7b5667 commit 6562d79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/devices/namron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ const definitions: Definition[] = [
zigbeeModel: ['1402768'],
model: '1402768',
vendor: 'Namron',
description: 'Zigbee LED dimmer',
extend: extend.light_onoff_brightness({noConfigure: true, disableEffect: true}),
description: 'Zigbee LED dimmer TW 250W',
extend: extend.light_onoff_brightness_colortemp({noConfigure: true, disableEffect: true, colorTempRange: [250, 65279]}),
meta: {disableDefaultResponse: true},
configure: async (device, coordinatorEndpoint, logger) => {
await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
await extend.light_onoff_brightness_colortemp().configure(device, coordinatorEndpoint, logger);
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
await reporting.onOff(endpoint);
Expand Down

0 comments on commit 6562d79

Please sign in to comment.