From 9041fc38e282d27daad75914df40c34117772c9e Mon Sep 17 00:00:00 2001 From: xuexiaofei <279716582@qq.com> Date: Fri, 25 Oct 2024 08:41:50 +0800 Subject: [PATCH 1/2] feat(config): add ZVIDAR WB04V Smartwings Day Night Shades feat(config): add ZVIDAR WB04V Smartwings Day Night Shades --- .../config/config/devices/0x045a/WB04V.json | 335 ++++++++++++++++++ 1 file changed, 335 insertions(+) create mode 100644 packages/config/config/devices/0x045a/WB04V.json diff --git a/packages/config/config/devices/0x045a/WB04V.json b/packages/config/config/devices/0x045a/WB04V.json new file mode 100644 index 000000000000..0d89ab78abcb --- /dev/null +++ b/packages/config/config/devices/0x045a/WB04V.json @@ -0,0 +1,335 @@ +{ + "manufacturer": "ZVIDAR", + "manufacturerId": "0x045a", + "label": "WB04V", + "description": "Smartwings Day Night Shades", + "devices": [{ + "productType": "0x0004", + "productId": "0x0509" + }], + "firmwareVersion": { + "min": "0.0", + "max": "255.255" + }, + "associations": { + "1": { + "label": "Lifeline", + "maxNodes": 5, + "isLifeline": true + }, + "2": { + "label": "On/Off Control:EP1", + "maxNodes": 5 + }, + "3": { + "label": "Multilevel Set:EP1", + "maxNodes": 5 + }, + "4": { + "label": "Multilevel Start/Stop:EP1", + "maxNodes": 5 + }, + "5": { + "label": "On/Off Control:EP2", + "maxNodes": 5 + }, + "6": { + "label": "Multilevel Set:EP2", + "maxNodes": 5 + }, + "7": { + "label": "Multilevel Start/Stop:EP2", + "maxNodes": 5 + } + }, + "paramInformation": [ + { + "#": "1", + "label": "Motor 1:Set Direction", + "valueSize": 1, + "defaultValue": 1, + "allowManualEntry": false, + "options": [{ + "label": "Forward", + "value": 1 + }, + { + "label": "Reverse", + "value": 2 + } + ] + }, + { + "#": "2", + "label": "Motor 2:Set Direction", + "valueSize": 1, + "defaultValue": 1, + "allowManualEntry": false, + "options": [{ + "label": "Forward", + "value": 1 + }, + { + "label": "Reverse", + "value": 2 + } + ] + }, + { + "#": "3", + "label": "Motor 1:Set Status", + "valueSize": 1, + "defaultValue": 3, + "allowManualEntry": false, + "options": [{ + "label": "Open (Up)", + "value": 1 + }, + { + "label": "Close (Down)", + "value": 2 + }, + { + "label": "Stop", + "value": 3 + } + ] + }, + { + "#": "4", + "label": "Motor 2:Set Status", + "valueSize": 1, + "defaultValue": 3, + "allowManualEntry": false, + "options": [{ + "label": "Open (Up)", + "value": 1 + }, + { + "label": "Close (Down)", + "value": 2 + }, + { + "label": "Stop", + "value": 3 + } + ] + }, + { + "#": "5", + "label": "Motor 1:Set Travel Point", + "valueSize": 1, + "defaultValue": 1, + "allowManualEntry": false, + "options": [{ + "label": "Up travel point", + "value": 1 + }, + { + "label": "Down travel point", + "value": 2 + }, + { + "label": "Third travel point", + "value": 3 + } + ] + }, + { + "#": "6", + "label": "Motor 2:Set Travel Point", + "valueSize": 1, + "defaultValue": 1, + "allowManualEntry": false, + "options": [{ + "label": "Up travel point", + "value": 1 + }, + { + "label": "Down travel point", + "value": 2 + }, + { + "label": "Third travel point", + "value": 3 + } + ] + }, + { + "#": "7", + "label": "Motor 1:Run Travel Point", + "valueSize": 1, + "defaultValue": 1, + "allowManualEntry": false, + "options": [{ + "label": "Up travel point", + "value": 1 + }, + { + "label": "Down travel point", + "value": 2 + }, + { + "label": "Third travel point", + "value": 3 + } + ] + }, + { + "#": "8", + "label": "Motor 2:Run Travel Point", + "valueSize": 1, + "defaultValue": 1, + "allowManualEntry": false, + "options": [{ + "label": "Up travel point", + "value": 1 + }, + { + "label": "Down travel point", + "value": 2 + }, + { + "label": "Third travel point", + "value": 3 + } + ] + }, + { + "#": "9", + "label": "Motor 1:Delete Travel Point", + "valueSize": 1, + "defaultValue": 0, + "allowManualEntry": false, + "options": [{ + "label": "Delete all travel", + "value": 0 + }, + { + "label": "Delete up travel", + "value": 1 + }, + { + "label": "Delete down travel", + "value": 2 + }, + { + "label": "Delete third travel", + "value": 3 + } + ] + }, + { + "#": "10", + "label": "Motor 2:Delete Travel Point", + "valueSize": 1, + "defaultValue": 0, + "allowManualEntry": false, + "options": [{ + "label": "Delete all travel", + "value": 0 + }, + { + "label": "Delete up travel", + "value": 1 + }, + { + "label": "Delete down travel", + "value": 2 + }, + { + "label": "Delete third travel", + "value": 3 + } + ] + }, + { + "#": "11", + "label": "Motor 1:Set Moving Way", + "valueSize": 1, + "minValue": 0, + "maxValue": 19, + "defaultValue": 0 + }, + { + "#": "12", + "label": "Motor 2:Set Moving Way", + "valueSize": 1, + "minValue": 0, + "maxValue": 19, + "defaultValue": 0 + }, + { + "#": "13", + "label": "Low Battery Level Alarm Threshold", + "valueSize": 1, + "unit": "%", + "minValue": 0, + "maxValue": 50, + "defaultValue": 10 + }, + { + "#": "14", + "label": "Battery Auto Report Interval Time", + "valueSize": 4, + "unit": "seconds", + "minValue": 0, + "maxValue": 2678400, + "defaultValue": 3600 + }, + { + "#": "15", + "label": "Battery Change Report Threshold", + "valueSize": 1, + "unit": "%", + "minValue": 0, + "maxValue": 50, + "defaultValue": 5 + }, + { + "#": "16", + "label": "Curtain Status Report Command Setting", + "valueSize": 1, + "defaultValue": 6, + "allowManualEntry": false, + "options": [{ + "label": "Send nothing", + "value": 0 + }, + { + "label": "Send Basic Report", + "value": 1 + }, + { + "label": "Send Multilevel Switch Report", + "value": 2 + }, + { + "label": "Send Window Covering Report", + "value": 3 + }, + { + "label": "Send Basic Report and Multilevel Switch Report", + "value": 4 + }, + { + "label": "Send Basic Report and Window Covering Report", + "value": 5 + }, + { + "label": "Send Multilevel Switch Report and Window Covering Report", + "value": 6 + }, + { + "label": "Send Basic Report and Multilevel Switch Report and Window Covering Report", + "value": 7 + } + ] + } + ], + "metadata": { + "inclusion": "Follow the user guide of hub to enter inclusion mode.\nPress and hold the Config Button more than 6s, enter Include Mode", + "exclusion": "Follow the user guide of hub to enter exclusion mode.\nPress and hold the Config Button more than 6s, enter Exclusion Mode", + "reset": "Press and hold the Config Button more than 10s. The Curtain will reset itself to factory default by sending a Device Reset Locally Notification to gateway when the button is released.\nNote:Please use this procedure only when the network primary controller is missing or otherwise inoperable" + } +} From c2f6048cd0235647363da083e206f5049902a4c8 Mon Sep 17 00:00:00 2001 From: Dominic Griesel Date: Fri, 25 Oct 2024 07:57:24 +0200 Subject: [PATCH 2/2] fix: formatting --- .../config/config/devices/0x045a/WB04V.json | 85 +++++++++++-------- 1 file changed, 49 insertions(+), 36 deletions(-) diff --git a/packages/config/config/devices/0x045a/WB04V.json b/packages/config/config/devices/0x045a/WB04V.json index 0d89ab78abcb..a90d4633ed0f 100644 --- a/packages/config/config/devices/0x045a/WB04V.json +++ b/packages/config/config/devices/0x045a/WB04V.json @@ -3,10 +3,12 @@ "manufacturerId": "0x045a", "label": "WB04V", "description": "Smartwings Day Night Shades", - "devices": [{ - "productType": "0x0004", - "productId": "0x0509" - }], + "devices": [ + { + "productType": "0x0004", + "productId": "0x0509" + } + ], "firmwareVersion": { "min": "0.0", "max": "255.255" @@ -18,38 +20,39 @@ "isLifeline": true }, "2": { - "label": "On/Off Control:EP1", + "label": "On/Off Control: EP1", "maxNodes": 5 }, "3": { - "label": "Multilevel Set:EP1", + "label": "Multilevel Set: EP1", "maxNodes": 5 }, "4": { - "label": "Multilevel Start/Stop:EP1", + "label": "Multilevel Start/Stop: EP1", "maxNodes": 5 }, "5": { - "label": "On/Off Control:EP2", + "label": "On/Off Control: EP2", "maxNodes": 5 }, "6": { - "label": "Multilevel Set:EP2", + "label": "Multilevel Set: EP2", "maxNodes": 5 }, "7": { - "label": "Multilevel Start/Stop:EP2", + "label": "Multilevel Start/Stop: EP2", "maxNodes": 5 } }, "paramInformation": [ - { + { "#": "1", - "label": "Motor 1:Set Direction", + "label": "Motor 1: Set Direction", "valueSize": 1, "defaultValue": 1, "allowManualEntry": false, - "options": [{ + "options": [ + { "label": "Forward", "value": 1 }, @@ -61,11 +64,12 @@ }, { "#": "2", - "label": "Motor 2:Set Direction", + "label": "Motor 2: Set Direction", "valueSize": 1, "defaultValue": 1, "allowManualEntry": false, - "options": [{ + "options": [ + { "label": "Forward", "value": 1 }, @@ -77,11 +81,12 @@ }, { "#": "3", - "label": "Motor 1:Set Status", + "label": "Motor 1: Set Status", "valueSize": 1, "defaultValue": 3, "allowManualEntry": false, - "options": [{ + "options": [ + { "label": "Open (Up)", "value": 1 }, @@ -97,11 +102,12 @@ }, { "#": "4", - "label": "Motor 2:Set Status", + "label": "Motor 2: Set Status", "valueSize": 1, "defaultValue": 3, "allowManualEntry": false, - "options": [{ + "options": [ + { "label": "Open (Up)", "value": 1 }, @@ -117,11 +123,12 @@ }, { "#": "5", - "label": "Motor 1:Set Travel Point", + "label": "Motor 1: Set Travel Point", "valueSize": 1, "defaultValue": 1, "allowManualEntry": false, - "options": [{ + "options": [ + { "label": "Up travel point", "value": 1 }, @@ -137,11 +144,12 @@ }, { "#": "6", - "label": "Motor 2:Set Travel Point", + "label": "Motor 2: Set Travel Point", "valueSize": 1, "defaultValue": 1, "allowManualEntry": false, - "options": [{ + "options": [ + { "label": "Up travel point", "value": 1 }, @@ -157,11 +165,12 @@ }, { "#": "7", - "label": "Motor 1:Run Travel Point", + "label": "Motor 1: Run Travel Point", "valueSize": 1, "defaultValue": 1, "allowManualEntry": false, - "options": [{ + "options": [ + { "label": "Up travel point", "value": 1 }, @@ -177,11 +186,12 @@ }, { "#": "8", - "label": "Motor 2:Run Travel Point", + "label": "Motor 2: Run Travel Point", "valueSize": 1, "defaultValue": 1, "allowManualEntry": false, - "options": [{ + "options": [ + { "label": "Up travel point", "value": 1 }, @@ -197,11 +207,12 @@ }, { "#": "9", - "label": "Motor 1:Delete Travel Point", + "label": "Motor 1: Delete Travel Point", "valueSize": 1, "defaultValue": 0, "allowManualEntry": false, - "options": [{ + "options": [ + { "label": "Delete all travel", "value": 0 }, @@ -221,11 +232,12 @@ }, { "#": "10", - "label": "Motor 2:Delete Travel Point", + "label": "Motor 2: Delete Travel Point", "valueSize": 1, "defaultValue": 0, "allowManualEntry": false, - "options": [{ + "options": [ + { "label": "Delete all travel", "value": 0 }, @@ -245,7 +257,7 @@ }, { "#": "11", - "label": "Motor 1:Set Moving Way", + "label": "Motor 1: Set Moving Way", "valueSize": 1, "minValue": 0, "maxValue": 19, @@ -253,7 +265,7 @@ }, { "#": "12", - "label": "Motor 2:Set Moving Way", + "label": "Motor 2: Set Moving Way", "valueSize": 1, "minValue": 0, "maxValue": 19, @@ -292,7 +304,8 @@ "valueSize": 1, "defaultValue": 6, "allowManualEntry": false, - "options": [{ + "options": [ + { "label": "Send nothing", "value": 0 }, @@ -328,8 +341,8 @@ } ], "metadata": { - "inclusion": "Follow the user guide of hub to enter inclusion mode.\nPress and hold the Config Button more than 6s, enter Include Mode", + "inclusion": "Follow the user guide of hub to enter inclusion mode.\nPress and hold the Config Button more than 6s, enter Include Mode", "exclusion": "Follow the user guide of hub to enter exclusion mode.\nPress and hold the Config Button more than 6s, enter Exclusion Mode", - "reset": "Press and hold the Config Button more than 10s. The Curtain will reset itself to factory default by sending a Device Reset Locally Notification to gateway when the button is released.\nNote:Please use this procedure only when the network primary controller is missing or otherwise inoperable" + "reset": "Press and hold the Config Button more than 10s. The Curtain will reset itself to factory default by sending a Device Reset Locally Notification to gateway when the button is released.\nNote: Please use this procedure only when the network primary controller is missing or otherwise inoperable" } }