Skip to content

Commit

Permalink
fix(config): update Zooz ZEN30 to latest revisions (#6630)
Browse files Browse the repository at this point in the history
Co-authored-by: Dominic Griesel <[email protected]>
  • Loading branch information
apella12 and AlCalzone authored Jul 10, 2024
1 parent 5e04da9 commit c7269fe
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 15 deletions.
32 changes: 32 additions & 0 deletions packages/config/config/devices/0x027a/templates/zooz_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,22 @@
}
]
},
"zwave_on_dimmer_ramp_rate_match_manual_255": {
"$import": "~/templates/master_template.json#base_0-255_nounit",
"label": "Ramp Rate On (Z-Wave)",
"unit": "seconds",
"defaultValue": 255,
"options": [
{
"label": "Instant on",
"value": 0
},
{
"label": "Match ramp rate for manual control",
"value": 255
}
]
},
"zwave_off_dimmer_ramp_rate_match_manual": {
"$import": "~/templates/master_template.json#base_0-100_nounit",
"label": "Ramp Rate Off (Z-Wave)",
Expand All @@ -489,6 +505,22 @@
}
]
},
"zwave_off_dimmer_ramp_rate_match_manual_255": {
"$import": "~/templates/master_template.json#base_0-255_nounit",
"label": "Ramp Rate Off (Z-Wave)",
"unit": "seconds",
"defaultValue": 255,
"options": [
{
"label": "Instant off",
"value": 0
},
{
"label": "Match ramp rate for manual control",
"value": 255
}
]
},
"min_brightness": {
"$import": "~/templates/master_template.json#base_1-99_nounit",
"label": "Minimum Brightness",
Expand Down
82 changes: 67 additions & 15 deletions packages/config/config/devices/0x027a/zen30.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
// The firmware versions on this device are a mess. Firmwares in one column are the same feature-wise
// Features: (a) (b) (c) (d)
// Revision 1: 1.3 -> 1.5 -> 1.11
// Revision 2: 2.0 = 2.1 -> 2.11
// Revision 3: 3.0 -> 3.10 -> 3.20
// 800LR: 4.10

// Conditionals:
// (b): firmwareVersion >= 1.5
// (c): firmwareVersion >= 1.11 && firmwareVersion < 2.0 || firmwareVersion >= 2.11 && firmwareVersion < 3.0 || firmwareVersion >= 3.10
// (d): firmwareVersion >= 3.20
// 800LR: firmwareVersion >= 4.10

{
"manufacturer": "Zooz",
"manufacturerId": "0x027a",
"label": "ZEN30",
"label": [
{
"$if": "firmwareVersion >= 4.10",
"value": "ZEN30 800LR"
},
"ZEN30"
],
"description": "Dimmer & Dry Contact Relay",
"devices": [
{
Expand Down Expand Up @@ -132,10 +151,34 @@
}
]
},
// Ramp Rate Control
{
// This parameter was changed in firmware 3.20 and split into parameters 13, 31, 32, and 33
"#": "13",
"$if": "firmwareVersion >= 3.20",
"$import": "templates/zooz_template.json#dimmer_on_ramp_rate"
},
{
"#": "13",
"$if": "firmwareVersion < 3.20",
"$import": "templates/zooz_template.json#dimmer_ramp_rate",
"defaultValue": 1
"label": "Ramp Rate On/Off (Both Zwave and Manual)"
},
{
"#": "31",
"$if": "firmwareVersion >= 3.20",
"$import": "templates/zooz_template.json#dimmer_off_ramp_rate",
"defaultValue": 2
},
{
"#": "32",
"$if": "firmwareVersion >= 3.20",
"$import": "templates/zooz_template.json#zwave_on_dimmer_ramp_rate_match_manual_255"
},
{
"#": "33",
"$if": "firmwareVersion >= 3.20",
"$import": "templates/zooz_template.json#zwave_off_dimmer_ramp_rate_match_manual_255"
},
{
"#": "14",
Expand All @@ -147,6 +190,12 @@
},
{
"#": "17",
"$if": "firmwareVersion >= 3.20",
"$import": "templates/zooz_template.json#zen7x_double_tap_up_behavior"
},
{
"#": "17",
"$if": "firmwareVersion < 3.20",
"label": "Double Tap Function for Dimmer",
"description": "Brightness level after double-tapping the upper paddle.",
"valueSize": 1,
Expand All @@ -165,6 +214,12 @@
},
{
"#": "18",
"$if": "firmwareVersion >= 3.20",
"$import": "templates/zooz_template.json#single_tap_up_behavior"
},
{
"#": "18",
"$if": "firmwareVersion < 3.20",
"label": "Enable/Disable Double-Tap for Dimmer",
"valueSize": 1,
"defaultValue": 0,
Expand All @@ -187,14 +242,12 @@
{
"#": "19",
"$import": "~/templates/master_template.json#smart_switch_mode_0-2",
"label": "Enable/Disable Load Control for Dimmer",
"defaultValue": 1
"label": "Enable/Disable Load Control for Dimmer"
},
{
"#": "20",
"$import": "~/templates/master_template.json#smart_switch_mode_0-2",
"label": "Enable/Disable Load Control for Relay",
"defaultValue": 1
"label": "Enable/Disable Load Control for Relay"
},
{
"#": "21",
Expand All @@ -216,47 +269,46 @@
},
{
"#": "24",
"$if": "firmwareVersion >= 1.4",
"$if": "firmwareVersion >= 1.5",
"$import": "templates/zooz_template.json#smart_switch_mode_reporting",
"label": "Dimmer Reporting Behavior When Physical Control Is Disabled",
"description": "Enable or disable dimmer reporting on/off status and changing LED indicator state even if physical and Z-Wave control is disabled."
},
{
"#": "25",
"$if": "firmwareVersion >= 1.4",
"$if": "firmwareVersion >= 1.5",
"$import": "templates/zooz_template.json#smart_switch_mode_reporting",
"label": "Relay Reporting Behavior When Physical Control Is Disabled",
"description": "Enable or disable relay reporting on/off status and changing LED indicator state even if physical and Z-Wave control is disabled.",
"defaultValue": 0
"description": "Enable or disable relay reporting on/off status and changing LED indicator state even if physical and Z-Wave control is disabled."
},
{
"#": "26",
"$if": "firmwareVersion >= 1.4",
"$if": "firmwareVersion >= 1.5",
"$import": "templates/zooz_template.json#night_light_mode",
"defaultValue": 0
},
{
"#": "27",
"$if": "firmwareVersion >= 1.4",
"$if": "firmwareVersion >= 1.5",
"$import": "~/templates/master_template.json#orientation_momentary"
},
{
"#": "28",
"$if": "firmwareVersion >= 1.2",
"$if": "firmwareVersion >= 1.11 && firmwareVersion < 2.0 || firmwareVersion >= 2.11 && firmwareVersion < 3.0 || firmwareVersion >= 3.10",
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Scene Control (Dimmer)",
"defaultValue": 1
},
{
"#": "29",
"$if": "firmwareVersion >= 1.2",
"$if": "firmwareVersion >= 1.11 && firmwareVersion < 2.0 || firmwareVersion >= 2.11 && firmwareVersion < 3.0 || firmwareVersion >= 3.10",
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Scene Control (Relay)",
"defaultValue": 1
},
{
"#": "30",
"$if": "firmwareVersion >= 1.2",
"$if": "firmwareVersion >= 1.11 && firmwareVersion < 2.0 || firmwareVersion >= 2.11 && firmwareVersion < 3.0 || firmwareVersion >= 3.10",
"$import": "templates/zooz_template.json#local_programming"
}
],
Expand Down

0 comments on commit c7269fe

Please sign in to comment.