zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Device Support: AC03641 Classic A60 W clear - LIGHTIFY

Open 1of16 opened this issue 8 years ago • 1 comments

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

1of16 avatar Jul 22 '18 12:07 1of16

The configure method is not needed, thanks for the PR!

Koenkk avatar Jul 22 '18 16:07 Koenkk