From cbcd33fde6dbef3204404497d3cba7df83d5d330 Mon Sep 17 00:00:00 2001 From: faanskit Date: Wed, 5 May 2021 12:33:30 +0200 Subject: [PATCH] Added support for WRT-01 --- plejd/PlejdApi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plejd/PlejdApi.js b/plejd/PlejdApi.js index 2aab5f0..d129a29 100644 --- a/plejd/PlejdApi.js +++ b/plejd/PlejdApi.js @@ -270,7 +270,7 @@ class PlejdApi { // Unknown return { name: '-unknown-', type: 'light', dimmable: false }; case 10: - return { name: '-unknown-', type: 'light', dimmable: false }; + return { name: 'WRT-01', type: 'device_automation', dimmable: false }; case 12: // Unknown return { name: '-unknown-', type: 'light', dimmable: false }; @@ -380,7 +380,7 @@ class PlejdApi { // The device does not have an output. It can be assumed to be a WPH-01 or a WRT-01 // Filter inputSettings for available buttons const inputSettings = this.siteDetails.inputSettings.filter( - (x) => x.deviceId === device.deviceId && (x.buttonType == 'DirectionUp') || (x.buttonType == 'DirectionDown')); + (x) => x.deviceId === device.deviceId && (x.buttonType == 'DirectionUp') || (x.buttonType == 'DirectionDown') || (x.buttonType == 'RotateMesh')); // For each found button, register the device as an inputDevice inputSettings.forEach((input) => {