Skip to content

Commit

Permalink
Add bulk set parameters to inovelli switches
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjohnsontv committed Dec 2, 2024
1 parent f2d7b3e commit be31305
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 244 deletions.
160 changes: 82 additions & 78 deletions packages/config/config/devices/0x031e/lzw30-sn.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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]",
Expand Down Expand Up @@ -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": {
Expand Down
6 changes: 4 additions & 2 deletions packages/config/config/devices/0x031e/lzw31-sn.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
Loading

0 comments on commit be31305

Please sign in to comment.