Skip to content

Commit

Permalink
fix(config): update Zooz ZEN32 config to the latest firmware, include…
Browse files Browse the repository at this point in the history
… 800 series (#6283)

Co-authored-by: Dominic Griesel <[email protected]>
  • Loading branch information
TheZackCodec and AlCalzone authored Sep 20, 2023
1 parent 878a895 commit 4c1042f
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 5 deletions.
39 changes: 39 additions & 0 deletions packages/config/config/devices/0x027a/templates/zooz_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,45 @@
}
]
},
"led_indicator_color_extended": {
"label": "LED Indicator Color",
"valueSize": 1,
"minValue": 0,
"maxValue": 6,
"defaultValue": 1,
"unsigned": true,
"allowManualEntry": false,
"options": [
{
"label": "White",
"value": 0
},
{
"label": "Blue",
"value": 1
},
{
"label": "Green",
"value": 2
},
{
"label": "Red",
"value": 3
},
{
"label": "Magenta",
"value": 4
},
{
"label": "Yellow",
"value": 5
},
{
"label": "Cyan",
"value": 6
}
]
},
"led_indicator_brightness": {
"label": "LED Indicator Brightness",
"valueSize": 1,
Expand Down
100 changes: 95 additions & 5 deletions packages/config/config/devices/0x027a/zen32.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
// The firmware versions on this device are a mess
// 1.1 -> 10.0 -> 10.10 -> 10.20 -> 10.30 -> (10.40 ≅ 2.10) -> 2.20

// Conditionals:
// 10.0 and later: firmwareVersion >= 10.0 || firmwareVersion >= 2.10 && firmwareVersion < 10.0
// 10.10 and later: firmwareVersion >= 10.10 || firmwareVersion >= 2.10 && firmwareVersion < 10.0
// 10.20 and later: firmwareVersion >= 10.20 || firmwareVersion >= 2.10 && firmwareVersion < 10.0
// 10.30 and later: firmwareVersion >= 10.30 || firmwareVersion >= 2.10 && firmwareVersion < 10.0
// 10.40 and later: firmwareVersion >= 10.40 || firmwareVersion >= 2.10 && firmwareVersion < 10.0
// 800 series: firmwareVersion >= 2.10 && firmwareVersion < 10.0

{
"manufacturer": "Zooz",
"manufacturerId": "0x027a",
"label": "ZEN32",
"label": [
{
"$if": "firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"value": "ZEN32 800LR"
},
"ZEN32"
],
"description": "Scene Controller",
"devices": [
{
Expand Down Expand Up @@ -91,30 +108,65 @@
"$import": "~/templates/master_template.json#led_indicator_four_options",
"label": "LED Indicator (Button 4)"
},
{
"#": "6",
"$if": "firmwareVersion >= 10.40 || firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"$import": "templates/zooz_template.json#led_indicator_color_extended",
"label": "LED Indicator Color (Relay)",
"defaultValue": 0
},
{
"#": "6",
"$import": "templates/zooz_template.json#led_indicator_color",
"label": "LED Indicator Color (Relay)",
"defaultValue": 0
},
{
"#": "7",
"$if": "firmwareVersion >= 10.40 || firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"$import": "templates/zooz_template.json#led_indicator_color_extended",
"label": "LED Indicator Color (Button 1)",
"defaultValue": 0
},
{
"#": "7",
"$import": "templates/zooz_template.json#led_indicator_color",
"label": "LED Indicator Color (Button 1)",
"defaultValue": 0
},
{
"#": "8",
"$if": "firmwareVersion >= 10.40 || firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"$import": "templates/zooz_template.json#led_indicator_color_extended",
"label": "LED Indicator Color (Button 2)",
"defaultValue": 0
},
{
"#": "8",
"$import": "templates/zooz_template.json#led_indicator_color",
"label": "LED Indicator Color (Button 2)",
"defaultValue": 0
},
{
"#": "9",
"$if": "firmwareVersion >= 10.40 || firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"$import": "templates/zooz_template.json#led_indicator_color_extended",
"label": "LED Indicator Color (Button 3)",
"defaultValue": 0
},
{
"#": "9",
"$import": "templates/zooz_template.json#led_indicator_color",
"label": "LED Indicator Color (Button 3)",
"defaultValue": 0
},
{
"#": "10",
"$if": "firmwareVersion >= 10.40 || firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"$import": "templates/zooz_template.json#led_indicator_color_extended",
"label": "LED Indicator Color (Button 4)",
"defaultValue": 0
},
{
"#": "10",
"$import": "templates/zooz_template.json#led_indicator_color",
Expand Down Expand Up @@ -172,27 +224,65 @@
},
{
"#": "21",
"$if": "firmwareVersion >= 1.2",
"$if": "firmwareVersion >= 10.0 || firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"$import": "templates/zooz_template.json#3way_switch_type"
},
{
"#": "22",
"$if": "firmwareVersion >= 10.0",
"$if": "firmwareVersion >= 10.0 || firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"$import": "templates/zooz_template.json#local_programming"
},
{
"#": "23",
"$if": "firmwareVersion >= 10.20",
"$if": "firmwareVersion >= 10.20 || firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"$import": "~/templates/master_template.json#base_enable_disable_inverted",
"label": "LED Settings Indicator",
"defaultValue": 0
},
{
"#": "24",
"$import": "~/templates/master_template.json#base_enable_disable_inverted",
"$if": "firmwareVersion >= 10.30",
"$if": "firmwareVersion >= 10.30 || firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"label": "Scene Control (Relay)",
"defaultValue": 0
},
{
"#": "26",
"$import": "templates/zooz_template.json#enable_scene_control_3way",
"$if": "firmwareVersion >= 10.40 || firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"label": "Scene Control (Relay)"
},
{
"#": "25[0x01]",
"$if": "firmwareVersion >= 10.40 || firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Send Status Change Report: Local Control",
"description": "Determine whether a trigger of this type should prompt a status change report to associated devices.",
"defaultValue": 1
},
{
"#": "25[0x02]",
"$if": "firmwareVersion >= 10.40 || firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Send Status Change Report: 3-Way",
"description": "Determine whether a trigger of this type should prompt a status change report to associated devices.",
"defaultValue": 1
},
{
"#": "25[0x04]",
"$if": "firmwareVersion >= 10.40 || firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Send Status Change Report: Z-Wave",
"description": "Determine whether a trigger of this type should prompt a status change report to associated devices.",
"defaultValue": 1
},
{
"#": "25[0x08]",
"$if": "firmwareVersion >= 10.40 || firmwareVersion >= 2.10 && firmwareVersion < 10.0",
"$import": "~/templates/master_template.json#base_enable_disable",
"label": "Send Status Change Report: Timer",
"description": "Determine whether a trigger of this type should prompt a status change report to associated devices.",
"defaultValue": 1
}
],
"compat": {
Expand Down

0 comments on commit 4c1042f

Please sign in to comment.