Skip to content

Commit

Permalink
feat(config): parameter update for Zooz Zen16 v2.0 and v2.10 (#6855)
Browse files Browse the repository at this point in the history
Co-authored-by: Dominic Griesel <[email protected]>
  • Loading branch information
gmjck and AlCalzone authored May 24, 2024
1 parent 5625d9d commit 658fb08
Show file tree
Hide file tree
Showing 2 changed files with 218 additions and 5 deletions.
104 changes: 104 additions & 0 deletions packages/config/config/devices/0x027a/templates/zooz_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,110 @@
}
]
},
// zen16 and zen17 relay devices now (Zen16 FW >=2.0, Zen17 FW >= 1.04) share common definition for switch type (and value inversion) and input trigger duration
"multi_universal_relay_switch_type": {
"valueSize": 1,
"defaultValue": 2,
"unsigned": true,
"allowManualEntry": false,
"options": [
{
"label": "Momentary",
"value": 0
},
{
"label": "Toggle (Follow switch)",
"value": 1
},
{
"label": "Toggle (Change state on toggle)",
"value": 2
},
{
"label": "Garage door (Momentary mode for Z-Wave control)",
"value": 3
},
{
"label": "Leak alarm (Water sensor)",
"value": 4
},
{
"label": "Heat alarm",
"value": 5
},
{
"label": "Motion alert",
"value": 6
},
{
"label": "Open/Close alert (Door sensor)",
"value": 7
},
{
"label": "CO alarm",
"value": 8
},
{
"label": "CO2 alarm",
"value": 9
},
{
"label": "On/Off report (Dry contact switch/sensor)",
"value": 10
},
{
"label": "Garage door mode (Relay), door sensor (Input)",
"value": 11
}
]
},
"multi_universal_relay_reverse_reported_value": {
"valueSize": 1,
"defaultValue": 0,
"unsigned": true,
"allowManualEntry": false,
"options": [
{
"label": "Values not reversed",
"value": 0
},
{
"label": "Leak alarm (Water sensor)",
"value": 4
},
{
"label": "Heat alarm",
"value": 5
},
{
"label": "Motion alert",
"value": 6
},
{
"label": "Open/Close alert (Door sensor)",
"value": 7
},
{
"label": "CO alarm",
"value": 8
},
{
"label": "CO2 alarm",
"value": 9
},
{
"label": "On/Off report (Dry contact switch/sensor)",
"value": 10
}
]
},
"multi_universal_relay_input_trigger_duration": {
"valueSize": 1,
"unit": "0.1 seconds",
"minValue": 1,
"maxValue": 100,
"defaultValue": 5
},
"zen16_manual_control": {
"valueSize": 1,
"defaultValue": 1,
Expand Down
119 changes: 114 additions & 5 deletions packages/config/config/devices/0x027a/zen16.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,16 @@
},
{
"#": "2",
"$if": "firmwareVersion >= 1.2",
"$if": "firmwareVersion >= 1.2 && firmwareVersion < 2.0",
"$import": "templates/zooz_template.json#zen16_switch_type_v2",
"label": "Switch 1: Type"
},
{
"#": "2",
"$if": "firmwareVersion >= 2.0",
"$import": "templates/zooz_template.json#multi_universal_relay_switch_type",
"label": "Switch 1: Type"
},
{
"#": "3",
"$if": "firmwareVersion <= 1.1",
Expand All @@ -82,10 +88,16 @@
},
{
"#": "3",
"$if": "firmwareVersion >= 1.2",
"$if": "firmwareVersion >= 1.2 && firmwareVersion < 2.0",
"$import": "templates/zooz_template.json#zen16_switch_type_v2",
"label": "Switch 2: Type"
},
{
"#": "3",
"$if": "firmwareVersion >= 2.0",
"$import": "templates/zooz_template.json#multi_universal_relay_switch_type",
"label": "Switch 2: Type"
},
{
"#": "4",
"$if": "firmwareVersion <= 1.1",
Expand All @@ -94,10 +106,16 @@
},
{
"#": "4",
"$if": "firmwareVersion >= 1.2",
"$if": "firmwareVersion >= 1.2 && firmwareVersion < 2.0",
"$import": "templates/zooz_template.json#zen16_switch_type_v2",
"label": "Switch 3: Type"
},
{
"#": "4",
"$if": "firmwareVersion >= 2.0",
"$import": "templates/zooz_template.json#multi_universal_relay_switch_type",
"label": "Switch 3: Type"
},
{
"#": "5",
"label": "LED Indicator",
Expand Down Expand Up @@ -244,7 +262,7 @@
"#": "11",
"$if": "firmwareVersion >= 1.1",
"$import": "templates/zooz_template.json#auto_timer_base_0x_1x_3x_7x_nounit",
"label": "Relay 2: Auto Turn-On Timer",
"label": "Relay 3: Auto Turn-On Timer",
"description": "Unit defined in parameter 20."
},
{
Expand Down Expand Up @@ -344,10 +362,101 @@
},
{
"#": "24",
"$if": "firmwareVersion >= 1.3",
"$if": "firmwareVersion >= 1.3 && firmwareVersion < 2.10",
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "DC Motor Mode",
"description": "When enabled only one relay may be on at a time, the other relay is automatically turned off."
},
{
"#": "24",
"$if": "firmwareVersion >= 2.10",
"label": "DC Motor Mode",
"description": "When enabled only one relay may be on at a time, the other relay is automatically turned off.",
"valueSize": 1,
"defaultValue": 0,
"allowManualEntry": false,
"options": [
{
"label": "Disabled (Relays turn on whenever activated)",
"value": 0
},
{
"label": "Enabled for R1 and R2 (R3 unaffected)",
"value": 1
},
{
"label": "Enabled for R1, R2, and R3",
"value": 2
}
]
},
{
"#": "25",
"$if": "firmwareVersion >= 2.0",
"$import": "templates/zooz_template.json#multi_universal_relay_reverse_reported_value",
"label": "Switch 1: Reverse Reported Value",
"description": "Select the same value as in parameter 2 to reverse the values for open and closed circuit."
},
{
"#": "26",
"$if": "firmwareVersion >= 2.0",
"$import": "templates/zooz_template.json#multi_universal_relay_reverse_reported_value",
"label": "Switch 2: Reverse Reported Value",
"description": "Select the same value as in parameter 3 to reverse the values for open and closed circuit."
},
{
"#": "27",
"$if": "firmwareVersion >= 2.0",
"$import": "templates/zooz_template.json#multi_universal_relay_reverse_reported_value",
"label": "Switch 3: Reverse Reported Value",
"description": "Select the same value as in parameter 4 to reverse the values for open and closed circuit."
},
{
"#": "28",
"$if": "firmwareVersion >= 2.10",
"$import": "templates/zooz_template.json#multi_universal_relay_input_trigger_duration",
"label": "Switch 1: Trigger Duration",
"description": "Time SW1 condition must be active before triggering associated action."
},
{
"#": "29",
"$if": "firmwareVersion >= 2.10",
"$import": "templates/zooz_template.json#multi_universal_relay_input_trigger_duration",
"label": "Switch 2: Trigger Duration",
"description": "Time SW2 condition must be active before triggering associated action."
},
{
"#": "30",
"$if": "firmwareVersion >= 2.10",
"$import": "templates/zooz_template.json#multi_universal_relay_input_trigger_duration",
"label": "Switch 3: Trigger Duration",
"description": "Time SW3 condition must be active before triggering associated action."
},
{
"#": "31",
"$if": "firmwareVersion >= 2.10",
"label": "Input Behavior",
"valueSize": 1,
"defaultValue": 0,
"allowManualEntry": false,
"options": [
{
"label": "SW1 turns R1 on/off, SW2 turns R2 on/off",
"value": 0
},
{
"label": "SW1 turns R1 on, SW2 turns R1 off",
"value": 1
},
{
"label": "SW1 turns R2 on, SW2 turns R2 off",
"value": 2
},
{
"label": "SW1 turns R1 and R2 on, SW2 turns R1 and R2 off",
"value": 3
}
]
}
],
"compat": {
Expand Down

0 comments on commit 658fb08

Please sign in to comment.