Skip to content

Commit

Permalink
fix: cleanup, consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Sep 26, 2023
1 parent 21b9ddf commit a3d5973
Showing 1 changed file with 71 additions and 64 deletions.
135 changes: 71 additions & 64 deletions packages/config/config/devices/0x0330/zv2833pac.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,15 @@
"#": "2",
"label": "External Switch Type",
"valueSize": 1,
"minValue": 0,
"maxValue": 2,
"defaultValue": 0,
"allowManualEntry": false,
"options": [
{
"label": "Push button",
"label": "Momentary switch",
"value": 0
},
{
"label": "Normal On/Off switch",
"label": "Toggle switch",
"value": 1
},
{
Expand All @@ -62,147 +60,156 @@
},
{
"#": "3",
"label": "Duration of the Multilevel Start Level Change Up/Down",
"label": "Multilevel Start Level Change Duration",
"description": "Sent when the switch is pressed and held.",
"valueSize": 1,
"unit": "seconds",
"minValue": 0,
"maxValue": 100,
"unit": "seconds",
"defaultValue": 8
},
{
"#": "4[0x01]",
"label": "Security On (1)- Off (0) for Association Group 2",
"valueSize": 1,
"minValue": 0,
"maxValue": 1,
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Association Group 2: Send Secure Commands",
"description": "Requires the device to be included securely.",
"defaultValue": 1
},
{
"#": "4[0x02]",
"label": "Security On (1)- Off (0) for Association Group 3",
"valueSize": 1,
"minValue": 0,
"maxValue": 1,
"defaultValue": 1
"$import": "#paramInformation/4[0x01]",
"label": "Association Group 3: Send Secure Commands"
},
{
"#": "4[0x04]",
"label": "Security On (1)- Off (0) for Association Group 4",
"valueSize": 1,
"minValue": 0,
"maxValue": 1,
"defaultValue": 1
"$import": "#paramInformation/4[0x01]",
"label": "Association Group 4: Send Secure Commands"
},
{
"#": "4[0x08]",
"label": "Security On (1)- Off (0) for Association Group 5",
"valueSize": 1,
"minValue": 0,
"maxValue": 1,
"defaultValue": 1
"$import": "#paramInformation/4[0x01]",
"label": "Association Group 5: Send Secure Commands"
},
{
"#": "5[0x01]",
"$import": "#paramInformation/4[0x01]",
"label": "button one short pressed once, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 1 Scenes: Short Press 1x",
"defaultValue": 1
},
{
"#": "5[0x02]",
"$import": "#paramInformation/4[0x01]",
"label": "button one short pressed twice, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 1 Scenes: Short Press 2x",
"defaultValue": 1
},
{
"#": "5[0x04]",
"$import": "#paramInformation/4[0x01]",
"label": "button one pressed and held, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 1 Scenes: Pressed and Held",
"defaultValue": 1
},
{
"#": "5[0x08]",
"$import": "#paramInformation/4[0x01]",
"label": "button one released, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 1 Scenes: Released",
"defaultValue": 1
},
{
"#": "6[0x01]",
"$import": "#paramInformation/4[0x01]",
"label": "button two short pressed once, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 2 Scenes: Short Press 1x",
"defaultValue": 1
},
{
"#": "6[0x02]",
"$import": "#paramInformation/4[0x01]",
"label": "button two short pressed twice, scene active "
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 2 Scenes: Short Press 2x",
"defaultValue": 1
},
{
"#": "6[0x04]",
"$import": "#paramInformation/4[0x01]",
"label": "button two pressed and held, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 2 Scenes: Pressed and Held",
"defaultValue": 1
},
{
"#": "6[0x08]",
"$import": "#paramInformation/4[0x01]",
"label": "button two released, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 2 Scenes: Released",
"defaultValue": 1
},
{
"#": "7[0x01]",
"$import": "#paramInformation/4[0x01]",
"label": "button three short pressed once, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 3 Scenes: Short Press 1x",
"defaultValue": 1
},
{
"#": "7[0x02]",
"$import": "#paramInformation/4[0x01]",
"label": "button three short pressed twice, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 3 Scenes: Short Press 2x",
"defaultValue": 1
},
{
"#": "7[0x04]",
"$import": "#paramInformation/4[0x01]",
"label": "button three pressed and held, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 3 Scenes: Pressed and Held",
"defaultValue": 1
},
{
"#": "7[0x08]",
"$import": "#paramInformation/4[0x01]",
"label": "button three released, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 3 Scenes: Released",
"defaultValue": 1
},
{
"#": "8[0x01]",
"$import": "#paramInformation/4[0x01]",
"label": "button four short pressed once, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 4 Scenes: Short Press 1x",
"defaultValue": 1
},
{
"#": "8[0x02]",
"$import": "#paramInformation/4[0x01]",
"label": "button four short pressed twice, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 4 Scenes: Short Press 2x",
"defaultValue": 1
},
{
"#": "8[0x04]",
"$import": "#paramInformation/4[0x01]",
"label": "button four pressed and held, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 4 Scenes: Pressed and Held",
"defaultValue": 1
},
{
"#": "8[0x08]",
"$import": "#paramInformation/4[0x01]",
"label": "button four released, scene active"
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Button 4 Scenes: Released",
"defaultValue": 1
},
{
"#": "9",
"label": "Function of the connected switches",
"label": "Switch Behavior",
"description": "See device manual for an explanation of the different functions.",
"valueSize": 1,
"minValue": 0,
"maxValue": 2,
"defaultValue": 0,
"allowManualEntry": false,
"options": [
{
"label": "function 1",
"label": "Function 1",
"value": 0
},
{
"label": "function 2",
"label": "Function 2",
"value": 1
},
{
"label": "function 3",
"label": "Function 3",
"value": 2
}
]
}
]
],
"metadata": {
"manual": "https://www.sunricher.com/media/resources/manual/SR-ZV2833PAC-Instruction.pdf"
}
}

0 comments on commit a3d5973

Please sign in to comment.