diff --git a/packages/config/config/devices/0x031e/lzw30-sn.json b/packages/config/config/devices/0x031e/lzw30-sn.json index 089a0b980e4f..8385976ae355 100644 --- a/packages/config/config/devices/0x031e/lzw30-sn.json +++ b/packages/config/config/devices/0x031e/lzw30-sn.json @@ -17,7 +17,7 @@ "paramInformation": [ { "#": "1", - "$import": "~/templates/master_template.json#state_after_power_failure_prev_on_off" + "$import": "templates/inovelli_templates.json#state_after_power_failure_prev_on_off" }, { "#": "2", @@ -208,83 +208,8 @@ ] }, { - "#": "9", - "label": "LED Strip Timeout", - "valueSize": 1, - "unit": "seconds", - "minValue": 0, - "maxValue": 10, - "defaultValue": 0, - "options": [ - { - "label": "Stay off", - "value": 0 - } - ] - }, - { - "#": "10", - "label": "Active Power Reports", - "valueSize": 1, - "unit": "%", - "minValue": 0, - "maxValue": 100, - "defaultValue": 10 - }, - { - "#": "11", - "label": "Periodic Power & Energy Reports", - "valueSize": 2, - "unit": "seconds", - "minValue": 0, - "maxValue": 32767, - "defaultValue": 3600 - }, - { - "#": "12", - "label": "Energy Reports", - "valueSize": 1, - "unit": "%", - "minValue": 0, - "maxValue": 100, - "defaultValue": 10 - }, - { - "#": "13", - "$if": "firmwareVersion >= 1.17", - "label": "Load Type", - "valueSize": 1, - "defaultValue": 0, - "allowManualEntry": false, - "options": [ - { - "label": "Automatically detect load type", - "value": 0 - }, - { - "label": "Manually set for special load type", - "value": 1 - } - ] - }, - { - "#": "51", - "$if": "firmwareVersion >= 1.19", - "label": "Instant On", - "description": "Enabling this disables the 700ms button delay and multi-tap scenes.", - "valueSize": 1, - "defaultValue": 1, - "allowManualEntry": false, - "options": [ - { - "label": "Enabled", - "value": 0 - }, - { - "label": "Disabled", - "value": 1 - } - ] + "#": "8", + "$import": "templates/inovelli_templates.json#bulk_set_led_effect" }, { "#": "8[0xff]", @@ -421,6 +346,85 @@ "value": 4 } ] + }, + { + "#": "9", + "label": "LED Strip Timeout", + "valueSize": 1, + "unit": "seconds", + "minValue": 0, + "maxValue": 10, + "defaultValue": 0, + "options": [ + { + "label": "Stay off", + "value": 0 + } + ] + }, + { + "#": "10", + "label": "Active Power Reports", + "valueSize": 1, + "unit": "%", + "minValue": 0, + "maxValue": 100, + "defaultValue": 10 + }, + { + "#": "11", + "label": "Periodic Power & Energy Reports", + "valueSize": 2, + "unit": "seconds", + "minValue": 0, + "maxValue": 32767, + "defaultValue": 3600 + }, + { + "#": "12", + "label": "Energy Reports", + "valueSize": 1, + "unit": "%", + "minValue": 0, + "maxValue": 100, + "defaultValue": 10 + }, + { + "#": "13", + "$if": "firmwareVersion >= 1.17", + "label": "Load Type", + "valueSize": 1, + "defaultValue": 0, + "allowManualEntry": false, + "options": [ + { + "label": "Automatically detect load type", + "value": 0 + }, + { + "label": "Manually set for special load type", + "value": 1 + } + ] + }, + { + "#": "51", + "$if": "firmwareVersion >= 1.19", + "label": "Instant On", + "description": "Enabling this disables the 700ms button delay and multi-tap scenes.", + "valueSize": 1, + "defaultValue": 1, + "allowManualEntry": false, + "options": [ + { + "label": "Enabled", + "value": 0 + }, + { + "label": "Disabled", + "value": 1 + } + ] } ], "metadata": { diff --git a/packages/config/config/devices/0x031e/lzw31-sn.json b/packages/config/config/devices/0x031e/lzw31-sn.json index 049ff78a25c4..1723568bc0d5 100644 --- a/packages/config/config/devices/0x031e/lzw31-sn.json +++ b/packages/config/config/devices/0x031e/lzw31-sn.json @@ -376,13 +376,15 @@ "label": "LED Indicator: Brightness When Off", "defaultValue": 1 }, + { + "#": "16", + "$import": "templates/inovelli_templates.json#bulk_set_led_effect" + }, { "#": "16[0xff]", "$import": "#paramInformation/13", "label": "LED Indicator: Effect Color", "valueSize": 4, - "minValue": 0, - "maxValue": 255, "defaultValue": 0, "unsigned": true, "options": [ diff --git a/packages/config/config/devices/0x031e/lzw36.json b/packages/config/config/devices/0x031e/lzw36.json index 44517c6fdac0..845d10ad751f 100644 --- a/packages/config/config/devices/0x031e/lzw36.json +++ b/packages/config/config/devices/0x031e/lzw36.json @@ -595,102 +595,9 @@ ] }, { - "#": "24[0x7f000000]", - "label": "Light LED Effect Type", - "valueSize": 4, - "defaultValue": 0, - "unsigned": true, - "allowManualEntry": false, - "options": [ - { - "label": "Off", - "value": 0 - }, - { - "label": "Solid", - "value": 1 - }, - { - "label": "Chase", - "value": 2 - }, - { - "label": "Fast blink", - "value": 3 - }, - { - "label": "Slow blink", - "value": 4 - }, - { - "label": "Pulse", - "value": 5 - } - ] - }, - { - "#": "24[0xff0000]", - "label": "Light LED Effect Duration", - "description": "0 = disabled, 1 to 60 = seconds, 61 to 120 = minutes (minus 60), 121 - 254 = hours (minus 120), 255 = indefinitely", - "valueSize": 4, - "minValue": 0, - "maxValue": 255, - "defaultValue": 255, - "unsigned": true - }, - { - "#": "24[0xff00]", - "label": "Light LED Effect Brightness", - "valueSize": 4, - "defaultValue": 3, - "unsigned": true, - "allowManualEntry": false, - "options": [ - { - "label": "Off", - "value": 0 - }, - { - "label": "10%", - "value": 1 - }, - { - "label": "20%", - "value": 2 - }, - { - "label": "30%", - "value": 3 - }, - { - "label": "40%", - "value": 4 - }, - { - "label": "50%", - "value": 5 - }, - { - "label": "60%", - "value": 6 - }, - { - "label": "70%", - "value": 7 - }, - { - "label": "80%", - "value": 8 - }, - { - "label": "90%", - "value": 9 - }, - { - "label": "100%", - "value": 10 - } - ] + "#": "24", + "$import": "templates/inovelli_templates.json#bulk_set_led_effect", + "label": "Bulk Set Light LED Effect" }, { "#": "24[0xff]", @@ -737,52 +644,8 @@ ] }, { - "#": "25[0x7f000000]", - "label": "Fan LED Effect Type", - "valueSize": 4, - "defaultValue": 0, - "unsigned": true, - "allowManualEntry": false, - "options": [ - { - "label": "Off", - "value": 0 - }, - { - "label": "Solid", - "value": 1 - }, - { - "label": "Chase", - "value": 2 - }, - { - "label": "Fast blink", - "value": 3 - }, - { - "label": "Slow blink", - "value": 4 - }, - { - "label": "Pulse", - "value": 5 - } - ] - }, - { - "#": "25[0xff0000]", - "label": "Fan LED Effect Duration", - "description": "0 = disabled, 1 to 60 = seconds, 61 to 120 = minutes (minus 60), 121 - 254 = hours (minus 120), 255 = indefinitely", - "valueSize": 4, - "minValue": 0, - "maxValue": 255, - "defaultValue": 255, - "unsigned": true - }, - { - "#": "25[0xff00]", - "label": "Fan LED Effect Brightness", + "#": "24[0xff00]", + "label": "Light LED Effect Brightness", "valueSize": 4, "defaultValue": 3, "unsigned": true, @@ -835,49 +698,74 @@ ] }, { - "#": "25[0xff]", - "label": "Fan LED Effect Color", - "description": "Uses a scaled hue value (realHue / 360 * 255).", + "#": "24[0xff0000]", + "label": "Light LED Effect Duration", + "description": "0 = disabled, 1 to 60 = seconds, 61 to 120 = minutes (minus 60), 121 - 254 = hours (minus 120), 255 = indefinitely", "valueSize": 4, "minValue": 0, "maxValue": 255, + "defaultValue": 255, + "unsigned": true + }, + { + "#": "24[0x7f000000]", + "label": "Light LED Effect Type", + "valueSize": 4, "defaultValue": 0, "unsigned": true, + "allowManualEntry": false, "options": [ { - "label": "Red", + "label": "Off", "value": 0 }, { - "label": "Orange", - "value": 21 - }, - { - "label": "Yellow", - "value": 42 - }, - { - "label": "Green", - "value": 85 + "label": "Solid", + "value": 1 }, { - "label": "Cyan", - "value": 127 + "label": "Chase", + "value": 2 }, { - "label": "Blue", - "value": 170 + "label": "Fast blink", + "value": 3 }, { - "label": "Violet", - "value": 212 + "label": "Slow blink", + "value": 4 }, { - "label": "Pink", - "value": 234 + "label": "Pulse", + "value": 5 } ] }, + { + "#": "25", + "$import": "templates/inovelli_templates.json#bulk_set_led_effect", + "label": "Bulk Set Fan LED Effect" + }, + { + "#": "25[0xff]", + "label": "Fan LED Effect Color", + "$import": "#paramInformation/24[0xff]" + }, + { + "#": "25[0xff00]", + "label": "Fan LED Effect Brightness", + "$import": "#paramInformation/24[0xff00]" + }, + { + "#": "25[0xff0000]", + "label": "Fan LED Effect Duration", + "$import": "#paramInformation/24[0xff0000]" + }, + { + "#": "25[0x7f000000]", + "label": "Fan LED Effect Type", + "$import": "#paramInformation/24[0x7f000000]" + }, { "#": "26", "label": "Light LED Strip Timeout", diff --git a/packages/config/config/devices/0x031e/templates/inovelli_templates.json b/packages/config/config/devices/0x031e/templates/inovelli_templates.json index 5af3797d4fb3..84621a359b49 100644 --- a/packages/config/config/devices/0x031e/templates/inovelli_templates.json +++ b/packages/config/config/devices/0x031e/templates/inovelli_templates.json @@ -390,5 +390,14 @@ "value": 255 } ] + }, + "bulk_set_led_effect": { + "label": "Bulk Set LED Effect", + "valueSize": 4, + "minValue": 0, + "maxValue": 4294967296, + "defaultValue": 0, + "description": "Set the LED Effect using the sum of each individual effect parameter (color + (brightness * 256) + (duration * 65536) + (effect * 16777216))", + "unsigned": true } } diff --git a/packages/config/config/devices/0x031e/vzw31-sn.json b/packages/config/config/devices/0x031e/vzw31-sn.json index c9660a68ad74..f6a61436db37 100644 --- a/packages/config/config/devices/0x031e/vzw31-sn.json +++ b/packages/config/config/devices/0x031e/vzw31-sn.json @@ -589,6 +589,11 @@ "$import": "~/templates/master_template.json#base_0-100_nounit", "label": "Default All LED Strip Brightness When Off" }, + { + "#": "99", + "$import": "templates/inovelli_templates.json#bulk_set_led_effect", + "label": "Bulk Set LED Strip Effect" + }, { "#": "99[0xff]", "$import": "templates/inovelli_templates.json#led_effect_duration",