From 6adb15c760027a1c99c9a69f8fdb9ccb22c63905 Mon Sep 17 00:00:00 2001 From: blhoward2 <33612110+blhoward2@users.noreply.github.com> Date: Wed, 14 Apr 2021 17:33:48 -0400 Subject: [PATCH] fix(config): make parameter #5 firmware dependent for Zooz ZSE40 (#2339) --- .../config/config/devices/0x027a/zse40.json | 57 ++++++++++++++----- 1 file changed, 44 insertions(+), 13 deletions(-) diff --git a/packages/config/config/devices/0x027a/zse40.json b/packages/config/config/devices/0x027a/zse40.json index 866742dce0e8..d5e7b62c1240 100644 --- a/packages/config/config/devices/0x027a/zse40.json +++ b/packages/config/config/devices/0x027a/zse40.json @@ -71,19 +71,50 @@ "writeOnly": false, "allowManualEntry": true }, - "5": { - "label": "Trigger Interval", - "description": "Set the trigger interval for motion sensor re-activation.", - "unit": "minutes", - "valueSize": 1, - "minValue": 1, - "maxValue": 255, - "defaultValue": 3, - "unsigned": true, - "readOnly": false, - "writeOnly": false, - "allowManualEntry": true - }, + "5": [ + { + "$if": "firmwareVersion < 17.9", + "label": "Trigger Interval", + "description": "Set the trigger interval for motion sensor re-activation.", + "unit": "minutes", + "valueSize": 1, + "minValue": 1, + "maxValue": 255, + "defaultValue": 3, + "unsigned": true, + "readOnly": false, + "writeOnly": false, + "allowManualEntry": true + }, + { + "$if": "firmwareVersion >= 17.9 && firmwareVersion < 24.2", + "label": "Trigger Interval", + "description": "Set the trigger interval for motion sensor re-activation.", + "unit": "seconds", + "valueSize": 1, + "minValue": 15, + "maxValue": 60, + "defaultValue": 15, + "unsigned": true, + "readOnly": false, + "writeOnly": false, + "allowManualEntry": true + }, + { + "$if": "firmwareVersion >= 24.2", + "label": "Trigger Interval", + "description": "Set the trigger interval for motion sensor re-activation.", + "unit": "seconds", + "valueSize": 1, + "minValue": 15, + "maxValue": 255, + "defaultValue": 15, + "unsigned": true, + "readOnly": false, + "writeOnly": false, + "allowManualEntry": true + } + ], "6": { "label": "Motion Sensor Sensitivity", "description": "Adjust sensitivity of the motion sensor.",