From a293b665b4affe006f58ff1d33ba427ef321f6d8 Mon Sep 17 00:00:00 2001 From: "Ryan Kim(True-World)" <58506302+nukusinji@users.noreply.github.com> Date: Wed, 20 May 2020 02:50:24 +0900 Subject: [PATCH] ADD DOWON_NEW_SW (#3570) 'PM-S140-ZB': [cfg.switch], 'PM-S240-ZB': [switchEndpoint('top'), switchEndpoint('bottom')], 'PM-S340-ZB': [switchEndpoint('top'), switchEndpoint('center'), switchEndpoint('bottom')], --- lib/extension/homeassistant.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/extension/homeassistant.js b/lib/extension/homeassistant.js index 38f1422c..9a63d3ed 100644 --- a/lib/extension/homeassistant.js +++ b/lib/extension/homeassistant.js @@ -1525,6 +1525,9 @@ const mapping = { 'PM-S140-ZB': [cfg.switch], 'PM-S240-ZB': [switchEndpoint('top'), switchEndpoint('bottom')], 'PM-S340-ZB': [switchEndpoint('top'), switchEndpoint('center'), switchEndpoint('bottom')], + 'PM-S140R-ZB': [cfg.switch], + 'PM-S240R-ZB': [switchEndpoint('top'), switchEndpoint('bottom')], + 'PM-S340R-ZB': [switchEndpoint('top'), switchEndpoint('center'), switchEndpoint('bottom')], 'U201DST600ZB': [cfg.light_brightness], 'U201SRY2KWZB': [cfg.switch], 'U202SRY2KWZB': [switchEndpoint('l1'), switchEndpoint('l2')],