From 823a9ea24835357fc5fab91e7a79d28b4f0d8ccc Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Fri, 20 Apr 2018 23:58:03 +0200 Subject: [PATCH] Support light devices MQTT discovery. #9 --- lib/devices.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/devices.js b/lib/devices.js index 4ebb6a8..2b6b396 100644 --- a/lib/devices.js +++ b/lib/devices.js @@ -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 + } + } }, }