zigbee2mqtt
zigbee2mqtt copied to clipboard
Device Support: AC03641 Classic A60 W clear - LIGHTIFY
Hi, this Osram is working with an addition the the device.js:
{
zigbeeModel: ['Classic A60 W clear - LIGHTIFY'],
model: 'AC03641',
vendor: 'OSRAM',
description: 'Classic A60 W clear - LIGHTIFY',
supports: generic.light_onoff_brightness().supports,
fromZigbee: generic.light_onoff_brightness().fromZigbee,
toZigbee: generic.light_onoff_brightness().toZigbee,
},
But since is a "Router" and no "EndDevice", do I need to add something like this:
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 3);
const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
];
execute(device, actions, callback);
},
or will it work as a router without any additional config?
btw. https://github.com/Koenkk/zigbee-shepherd-converters/pull/39
The configure method is not needed, thanks for the PR!