mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-20 18:41:35 +00:00
Add support for TRADFRI bulb E27 W opal 1000lm. #21
This commit is contained in:
+11
-7
@@ -1,5 +1,13 @@
|
||||
const homeassistant = require('./homeassistant').configurations;
|
||||
|
||||
const LED1623G12 = {
|
||||
model: 'LED1623G12',
|
||||
vendor: 'IKEA',
|
||||
description: 'TRADFRI LED bulb E27 1000 lumen, dimmable, opal white',
|
||||
supports: 'on/off, brightness',
|
||||
homeassistant: [homeassistant.light_brightness]
|
||||
};
|
||||
|
||||
const devices = {
|
||||
// Xiaomi
|
||||
'lumi.sensor_switch': {
|
||||
@@ -125,13 +133,9 @@ const devices = {
|
||||
supports: 'on/off, brightness, color temperature',
|
||||
homeassistant: [homeassistant.light_brightness_colortemp]
|
||||
},
|
||||
'TRADFRI bulb E27 opal 1000lm': {
|
||||
model: 'LED1623G12',
|
||||
vendor: 'IKEA',
|
||||
description: 'TRADFRI LED bulb E27 1000 lumen, dimmable, opal white',
|
||||
supports: 'on/off, brightness',
|
||||
homeassistant: [homeassistant.light_brightness]
|
||||
},
|
||||
// LED1623G12 uses 2 model IDs, see https://github.com/Koenkk/zigbee2mqtt/issues/21
|
||||
'TRADFRI bulb E27 opal 1000lm': LED1623G12,
|
||||
'TRADFRI bulb E27 W opal 1000lm': LED1623G12,
|
||||
'TRADFRI bulb GU10 WS 400lm': {
|
||||
model: 'LED1537R6',
|
||||
vendor: 'IKEA',
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ const logDevices = (devices) => {
|
||||
let result = '';
|
||||
result += '| Model | Description | Picture |\n';
|
||||
result += '| ------------- | ------------- | -------------------------- |\n';
|
||||
|
||||
devices = new Map(devices.map((d) => [d.model, d]));
|
||||
devices.forEach((device) => {
|
||||
result += `| ${device.model} | ${device.vendor} ${device.description} (${device.supports}) | }.jpg) |\n`;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user