From 2234fd1e8ace798be00bea4af3c512a676f275d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Pr=C3=BC=C3=9Fmann?= Date: Tue, 14 Jan 2020 18:47:32 +0100 Subject: [PATCH] Added endpoints for Busch-Jaeger (#2723) * Added endpoints for Busch-Jaeger * Added RM01 to homeassistant.js * Updated mapping to reflect latest change in converter * Renamed endpoint according to converted PR Co-authored-by: Koen Kanters --- lib/extension/homeassistant.js | 1 + lib/util/utils.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/extension/homeassistant.js b/lib/extension/homeassistant.js index 040d47ca3..db2457a44 100644 --- a/lib/extension/homeassistant.js +++ b/lib/extension/homeassistant.js @@ -1096,6 +1096,7 @@ const mapping = { 'GDKES-01TZXD': [cfg.switch], 'GDKES-02TZXD': [switchWithPostfix('left'), switchWithPostfix('right')], 'GDKES-03TZXD': [switchWithPostfix('left'), switchWithPostfix('center'), switchWithPostfix('right')], + '6735/6736/6737': [cfg.switch, cfg.sensor_action], 'SZ-SRN12N': [], 'ML-ST-D200': [cfg.light_brightness], '7099930PH': [cfg.light_brightness_colorxy], diff --git a/lib/util/utils.js b/lib/util/utils.js index c8459ddd8..7f6c7ec29 100644 --- a/lib/util/utils.js +++ b/lib/util/utils.js @@ -30,7 +30,7 @@ function toLocalISOString(dDate) { const postfixes = [ 'left', 'right', 'center', 'bottom_left', 'bottom_right', 'l1', 'l2', 'default', 'top_left', 'top_right', 'white', 'rgb', 'system', 'top', 'bottom', 'center_left', 'center_right', - 'ep1', 'ep2', + 'ep1', 'ep2', 'row_1', 'row_2', 'row_3', 'row_4', 'relay', ]; function flatten(arr) {