From 503b12f85cb0608b8466909f74199da5f38b0fa7 Mon Sep 17 00:00:00 2001 From: Aleksey <26031505+dev-abo@users.noreply.github.com> Date: Mon, 18 Feb 2019 13:28:57 -0600 Subject: [PATCH] Added LivingWise ZigBee Smart dimmer Switch. Model#: LVS-ZB500D (#288) * Added LivingWise ZigBee Smart dimmer Switch. Model#: LVS-ZB500D * Update devices.js * Update devices.js * Update fromZigbee.js --- converters/fromZigbee.js | 5 +++++ devices.js | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/converters/fromZigbee.js b/converters/fromZigbee.js index adf079707778e..d384e1a144175 100644 --- a/converters/fromZigbee.js +++ b/converters/fromZigbee.js @@ -4347,6 +4347,11 @@ const converters = { type: 'devChange', convert: (model, msg, publish, options) => null, }, + ignore_genIdentify: { + cid: 'genIdentify', + type: 'attReport', + convert: (model, msg, publish, options) => null, + }, }; module.exports = converters; diff --git a/devices.js b/devices.js index 111e08dd0987f..310bf9f730e1c 100755 --- a/devices.js +++ b/devices.js @@ -8085,6 +8085,20 @@ const devices = [ execute(device, actions, callback); }, }, + + // LivingWise + { + zigbeeModel: ['abb71ca5fe1846f185cfbda554046cce'], + model: 'LVS-ZB500D', + vendor: 'LivingWise', + description: 'ZigBee smart dimmer switch', + supports: 'on/off, brightness', + toZigbee: [tz.on_off, tz.light_brightness], + fromZigbee: [ + fz.state, fz.brightness, fz.ignore_light_brightness_report, fz.ignore_onoff_change, + fz.ignore_genIdentify, + ], + }, ]; module.exports = devices.map((device) =>