zigbee2mqtt / hassio-zigbee2mqtt

Official Zigbee2MQTT Home Assistant add-on
https://www.zigbee2mqtt.io
Apache License 2.0
1.02k stars 369 forks source link

Ikea led lamp LED2104R3 is reported as 'NOT supported', however it is declared supported in 1.33.1 release #542

Closed IvSan closed 7 months ago

IvSan commented 7 months ago

Description of the issue

Hello awesome community. I am looking for some help with my new Ikea light bulbs LED2104R3. According to the change log of release 1.33.1 the support for this lamp was added. I am using Home Assistant add-on of version 1.34.0-1
However when I am trying to pair the device I got a message: Device '0x30fb10fffe4b61a4' with Zigbee model 'TRADFRI bulb GU10 WW 345lm' and manufacturer name 'IKEA of Sweden' is NOT supported, please follow https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html Any ideas why is it happening and how to trace the core issue?

Addon version

1.34.0-1

Platform

Core 2023.11.3
Supervisor 2023.11.6
Operating System 11.2 

Logs of the issue (if applicable)

Device '0x30fb10fffe4b61a4' with Zigbee model 'TRADFRI bulb GU10 WW 345lm' and manufacturer name 'IKEA of Sweden' is NOT supported, please follow https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html

IvSan commented 7 months ago

Maybe this one is related? https://github.com/Koenkk/zigbee2mqtt/issues/18809

IvSan commented 7 months ago

Ok, I solved the problem by adding external converter LED2104R3.js

const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const legacy = require('zigbee-herdsman-converters/lib/legacy');
const extend = require('zigbee-herdsman-converters/lib/extend');
const ota = require('zigbee-herdsman-converters/lib/ota');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const utils = require('zigbee-herdsman-converters/lib/utils');
const globalStore = require('zigbee-herdsman-converters/lib/store');
const e = exposes.presets;
const ea = exposes.access;

const definition = {
    zigbeeModel: ['TRADFRI bulb GU10 WW 345lm'],
    model: 'LED2104R3',
    vendor: 'IKEA',
    description: 'TRADFRI LED bulb GU10 WW 345 lumen, dimmable',
    extend: extend.light_onoff_brightness(),
}

module.exports = definition;