Support LED1623G12. #21

This commit is contained in:
Koenkk 2018-05-06 18:08:10 +02:00
parent 8ad1d49870
commit 8523aa61b0
3 changed files with 18 additions and 2 deletions

View File

@ -131,7 +131,7 @@ const parsers = [
convert: (msg) => {return {contact: msg.data.data['onOff'] === 0}}
},
{
devices: ['LED1545G12', '7146060PH', 'LED1537R6'],
devices: ['LED1545G12', '7146060PH', 'LED1537R6', 'LED1623G12'],
cid: 'genLevelCtrl',
type: 'devChange',
convert: (msg) => {return {brightness: msg.data.data['currentLevel']}},
@ -249,7 +249,7 @@ const parsers = [
// Ignore parsers (these message dont need parsing).
{
devices: ['WXKG11LM', 'MCCGQ11LM', 'MCCGQ01LM', 'WXKG01LM', 'LED1545G12', '7146060PH', 'LED1537R6', 'ZNCZ02LM', 'QBCZ11LM', 'QBKG04LM', 'QBKG03LM'],
devices: ['WXKG11LM', 'MCCGQ11LM', 'MCCGQ01LM', 'WXKG01LM', 'LED1545G12', '7146060PH', 'LED1537R6', 'ZNCZ02LM', 'QBCZ11LM', 'QBKG04LM', 'QBKG03LM', 'LED1623G12'],
cid: 'genOnOff',
type: 'devChange',
convert: () => null

View File

@ -118,6 +118,13 @@ 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]
},
'TRADFRI bulb GU10 WS 400lm': {
model: 'LED1537R6',
vendor: 'IKEA',

View File

@ -118,6 +118,15 @@ const configurations = {
command_topic: true
}
},
'light_brightness': {
type: 'light',
object_id: 'light',
discovery_payload: {
brightness: true,
platform: 'mqtt_json',
command_topic: true
}
},
// Switch
'switch': {