From be27e08704c003d0a5e6b79cbbd27447ba5b6a3b Mon Sep 17 00:00:00 2001 From: Filip <5503114+Swoop86@users.noreply.github.com> Date: Mon, 5 Aug 2024 21:51:26 +0200 Subject: [PATCH 1/5] feat(config): add Namron 4512748 2A Awning Controller First time in a long time doing this, so need some assistance/guidance to get it right --- .../config/config/devices/0x0438/4512748.json | 170 ++++++++++++++++++ 1 file changed, 170 insertions(+) create mode 100644 packages/config/config/devices/0x0438/4512748.json diff --git a/packages/config/config/devices/0x0438/4512748.json b/packages/config/config/devices/0x0438/4512748.json new file mode 100644 index 000000000000..abb82520ac3f --- /dev/null +++ b/packages/config/config/devices/0x0438/4512748.json @@ -0,0 +1,170 @@ +{ + "manufacturer": "Namron", + "manufacturerId": "0x0438", + "label": "4512748", + "description": "Awning Controller", + "devices": [ + { + "productType": "0x0004", + "productId": "0x53261" + } + ], + "firmwareVersion": { + "min": "0.0", + "max": "255.255" + }, + "associations": { + "1": { + "label": "Lifeline", + "maxNodes": 5, + "isLifeline": true + } + }, + "paramInformation": [ + { + "#": "2", + "label": "Enable/Disable State Report Threshold", + "valueSize": 1, + "description": "0: Disable to report actively 1- 10: value to report, unit is one percent", + "defaultValue": 5 + }, + { + "#": "3", + "label": "Working Mode", + "valueSize": 1, + "defaultValue": 2, + "allowManualEntry": false, + "options": [ + { + "value": 0, + "label": "Light Mode" + }, + { + "value": 1, + "label": "Shutter mode without positioning" + }, + { + "value": 2, + "label": "Shutter mode without positioning" + } + ] + }, + { + "#": "4", + "$import": "~/templates/master_template.json#base_enable_disable", + "label": "Enable/Disable Save Positioning Percentage", + "valueSize": 1, + "defaultValue": 1 + }, + { + "#": "5", + "$import": "~/templates/master_template.json#base_enable_disable", + "label": "Enable/Disable Overcurrent Protection", + "valueSize": 1, + "defaultValue": 1 + }, + { + "#": "6", + "label": "Starting Positioning Calibration Performed", + "valueSize": 1, + "writeOnly": true + "defaultValue": 0 + }, + { + "#": "7", + "label": "Configuration Of Button S1 And S2 Control", + "valueSize": 1, + "defaultValue": 0, + "unsigned": true, + "allowManualEntry": false, + "options": [ + { + "label": "Value=0", + "value": 0 + }, + { + "label": "Value=1", + "value": 1 + }, + { + "label": "Value=2", + "value": 2 + }, + { + "label": "Value=3", + "value": 3 + }, + { + "label": "Value=4", + "value": 4 + } + }, + { + "#": "8", + "$import": "~/templates/master_template.json#base_enable_disable", + "label": "Enable/Disable Inclusion/Exclusion Through S1 Button", + "valueSize": 1, + "defaultValue": 1 + }, + { + "#": "9", + "label": "Enable/Disable Scene Activation Through S1 and S2 Switches", + "valueSize": 1, + "defaultValue": 1, + "allowManualEntry": false, + "options": [ + { + "label": "Disable to send for action of both S1 and S2", + "value": 0 + }, + { + "label": "Enable to send for action of both S1 and S2", + "value": 1 + }, + { + "label": "Enable to send for action of only S1", + "value": 2 + }, + { + "label": "Enable to send for action of only S2", + "value": 3 + } + }, + { + "#": "10", + "label": "Power Change Threshold Limit", + "valueSize": 1, + "defaultValue": 10 + }, + { + "#": "11", + "label": "Current Change Threshold Limit", + "valueSize": 1, + "defaultValue": 1 + }, + { + "#": "12", + "label": "Voltage Change Threshold Limit", + "valueSize": 1, + "defaultValue": 2 + }, + { + "#": "13", + "label": "Slats Rotation Time", + "valueSize": 1, + "defaultValue": 0 + }, + { + "#": "14", + "label": "Time Cycle To Report Energy Consumption Value", + "valueSize": 4, + "defaultValue": 3600 + } + ] + "metadata": { + "inclusion": "Select menu item “Net”, then find IN and long-press M for 2s.", + "exclusion": "Select menu item “Net”, then find OUT and long-press M for 2s.", + "reset": "Select menu item “Net”, then find OUT and long-press M for 2s.", + "manual": "https://www.elektroimportoren.no/docs/lib/4512748-Brukerveiledning-5.pdf" + } +} From 24bc99a69c23c902bf670aa184bef1ed88d3710f Mon Sep 17 00:00:00 2001 From: Filip <5503114+Swoop86@users.noreply.github.com> Date: Mon, 5 Aug 2024 21:58:26 +0200 Subject: [PATCH 2/5] Added missing comma --- packages/config/config/devices/0x0438/4512748.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/config/config/devices/0x0438/4512748.json b/packages/config/config/devices/0x0438/4512748.json index abb82520ac3f..4089db5eafa2 100644 --- a/packages/config/config/devices/0x0438/4512748.json +++ b/packages/config/config/devices/0x0438/4512748.json @@ -67,7 +67,7 @@ "#": "6", "label": "Starting Positioning Calibration Performed", "valueSize": 1, - "writeOnly": true + "writeOnly": true, "defaultValue": 0 }, { From b63cf857e7dc965e893a26bf924c07dcf45e5156 Mon Sep 17 00:00:00 2001 From: Filip <5503114+Swoop86@users.noreply.github.com> Date: Mon, 5 Aug 2024 22:01:58 +0200 Subject: [PATCH 3/5] Fixed missing bracket --- packages/config/config/devices/0x0438/4512748.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/config/config/devices/0x0438/4512748.json b/packages/config/config/devices/0x0438/4512748.json index 4089db5eafa2..da26b73dd799 100644 --- a/packages/config/config/devices/0x0438/4512748.json +++ b/packages/config/config/devices/0x0438/4512748.json @@ -98,6 +98,7 @@ "label": "Value=4", "value": 4 } + ] }, { "#": "8", From 6d73e715ed4b504a8651dfa5f672116436f41db2 Mon Sep 17 00:00:00 2001 From: Filip <5503114+Swoop86@users.noreply.github.com> Date: Mon, 5 Aug 2024 22:07:16 +0200 Subject: [PATCH 4/5] Fixed missing bracket Last time testing, if it breaks again I'll install the environment... --- packages/config/config/devices/0x0438/4512748.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/config/config/devices/0x0438/4512748.json b/packages/config/config/devices/0x0438/4512748.json index da26b73dd799..2f7e64110672 100644 --- a/packages/config/config/devices/0x0438/4512748.json +++ b/packages/config/config/devices/0x0438/4512748.json @@ -130,6 +130,7 @@ "label": "Enable to send for action of only S2", "value": 3 } + ] }, { "#": "10", From 7b5d2ba5ab6a0a0d68a85f9b965d104739e03414 Mon Sep 17 00:00:00 2001 From: Filip <5503114+Swoop86@users.noreply.github.com> Date: Mon, 5 Aug 2024 22:10:36 +0200 Subject: [PATCH 5/5] Fixed missing comma I know what I said, this is the last time... --- packages/config/config/devices/0x0438/4512748.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/config/config/devices/0x0438/4512748.json b/packages/config/config/devices/0x0438/4512748.json index 2f7e64110672..c31399fd17de 100644 --- a/packages/config/config/devices/0x0438/4512748.json +++ b/packages/config/config/devices/0x0438/4512748.json @@ -162,7 +162,7 @@ "valueSize": 4, "defaultValue": 3600 } - ] + ], "metadata": { "inclusion": "Select menu item “Net”, then find IN and long-press M for 2s.", "exclusion": "Select menu item “Net”, then find OUT and long-press M for 2s.",