Add support for TRADFRI bulb E27 W opal 1000lm. #21

This commit is contained in:
Koenkk
2018-05-12 15:05:18 +02:00
parent d3f271f984
commit b01b1a07bb
2 changed files with 12 additions and 8 deletions
+11 -7
View File
@@ -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
View File
@@ -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}) | ![${device.model}](images/devices/${device.model.replace('/', '-')}.jpg) |\n`;
});