Support light devices MQTT discovery. #9

This commit is contained in:
Koen Kanters
2018-04-20 23:58:03 +02:00
parent aebce9099b
commit 823a9ea248
+19
View File
@@ -50,12 +50,31 @@ const devices = {
vendor: 'IKEA',
description: 'TRADFRI LED bulb E27 980 lumen, dimmable, white spectrum, opal white',
supports: 'on/off, brightness, color temperature',
homeassistant: {
type: 'light',
discovery_payload: {
brightness: true,
color_temp: true,
platform: 'mqtt_json',
command_topic: true
}
}
},
'LLC020': {
model: '7146060PH',
vendor: 'Philips',
description: 'Hue Go',
supports: 'on/off, brightness, color temperature, color rgb',
homeassistant: {
type: 'light',
discovery_payload: {
brightness: true,
color_temp: true,
xy: true,
platform: 'mqtt_json',
command_topic: true
}
}
},
}