From 29afc75f31ea86b1fd64c32eb593c01b523eab62 Mon Sep 17 00:00:00 2001 From: hceuterpe <4507166+hceuterpe@users.noreply.github.com> Date: Fri, 10 Jan 2025 17:48:51 -0600 Subject: [PATCH 1/2] feat(config): update Zooz ZEN04 with params new in firmware 2.30 --- .../config/config/devices/0x027a/zen04.json | 88 +++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/packages/config/config/devices/0x027a/zen04.json b/packages/config/config/devices/0x027a/zen04.json index a26dfa8bf437..d8478c6b04f0 100644 --- a/packages/config/config/devices/0x027a/zen04.json +++ b/packages/config/config/devices/0x027a/zen04.json @@ -76,13 +76,32 @@ }, { "#": "5", + "$if": "firmwareVersion < 2.30", "label": "Power (W) Reporting Threshold", + "description": "Choose how you want your Smart Plug to report power consumption to your hub. The number entered as value corresponds to the number of Watts the appliance needs to go over for the change to be reported. So if 5 Watts are entered by default, the Smart Plug will report any change in power usage over 5 Watts (whether it’s at least 5 Watts more or 5 Watts less compared to the previous report).", "valueSize": 1, "unit": "W", "minValue": 5, "maxValue": 50, "defaultValue": 5 }, + { + "#": "5", + "$if": "firmwareVersion >= 2.30", + "label": "Power (W) Reporting Threshold", + "description": "Choose how you want your Smart Plug to report power consumption to your hub. The number entered as value corresponds to the number of Watts the appliance needs to go over for the change to be reported. So if 5 Watts are entered by default, the Smart Plug will report any change in power usage over 5 Watts (whether it’s at least 5 Watts more or 5 Watts less compared to the previous report).", + "valueSize": 1, + "unit": "W", + "minValue": 0, + "maxValue": 100, + "defaultValue": 5, + "options": [ + { + "label": "Disabled", + "value": 0 + } + ] + }, { "#": "6", "label": "Power (W) Reporting Interval", @@ -101,13 +120,32 @@ }, { "#": "7", + "$if": "firmwareVersion < 2.30", "label": "Current (A) Reporting Threshold", + "description": "Choose how you want your Smart Plug to report electrical current (Amps) to your hub. The number entered as value corresponds to the number of Amps the appliance needs to go over for the change to be reported. Value 1 equals 0.1 A and value 10 equals 1 A. So if 1 is entered by default, the Smart Plug will report any change in electrical current over 0.1 Amps (whether it’s at least 0.1 A more or 0.1 A less compared to the previous report).", "valueSize": 1, "unit": "0.1 A", "minValue": 1, "maxValue": 10, "defaultValue": 1 }, + { + "#": "7", + "$if": "firmwareVersion >= 2.30", + "label": "Current (A) Reporting Threshold", + "description": "Choose how you want your Smart Plug to report electrical current (Amps) to your hub. The number entered as value corresponds to the number of Amps the appliance needs to go over for the change to be reported. Value 1 equals 0.1 A and value 10 equals 1 A. So if 1 is entered by default, the Smart Plug will report any change in electrical current over 0.1 Amps (whether it’s at least 0.1 A more or 0.1 A less compared to the previous report).", + "valueSize": 1, + "unit": "0.1 A", + "minValue": 0, + "maxValue": 50, + "defaultValue": 1, + "options": [ + { + "label": "Disabled", + "value": 0 + } + ] + }, { "#": "12", "$if": "firmwareVersion >= 1.30", @@ -120,13 +158,33 @@ }, { "#": "8", + "$if": "firmwareVersion < 2.30", "label": "Energy (kWh) Reporting Threshold", + "description": "Choose how you want your Smart Plug to report energy use (kWh) to your hub. The number entered as value corresponds to the number of kWh the appliance needs to go over for the change to be reported. Value 1 equals 0.01 kWh and value 100 equals 1 kWh. So if 1 is entered by default, the Smart Plug will report any change in energy use over 0.01 kWh (whether it’s at least 0.01 kWh more or 0.01 kWh less compared to the previous report).", "valueSize": 1, "unit": "0.01 kWh", "minValue": 1, "maxValue": 100, "defaultValue": 1 }, + { + "#": "8", + "$if": "firmwareVersion >= 2.30", + "label": "Energy (kWh) Reporting Threshold", + "description": "Choose how you want your Smart Plug to report energy use (kWh) to your hub. The number entered as value corresponds to the number of kWh the appliance needs to go over for the change to be reported. Value 1 equals 0.01 kWh and value 100 equals 1 kWh. So if 1 is entered by default, the Smart Plug will report any change in energy use over 0.01 kWh (whether it’s at least 0.01 kWh more or 0.01 kWh less compared to the previous report).", + "valueSize": 1, + "unit": "0.01 kWh", + "minValue": 0, + "maxValue": 200, + "defaultValue": 1, + "unsigned": true, + "options": [ + { + "label": "Disabled", + "value": 0 + } + ] + }, { "#": "13", "$if": "firmwareVersion >= 1.30", @@ -142,6 +200,36 @@ "value": 0 } ] + }, + { + "#": "14", + "$if": "firmwareVersion >= 2.30", + "label": "kWh Report Frequency", + "description": "The number entered as a value corresponds to the number of minutes. So if 60 is entered by default, the Plug will report energy consumption (kWh) every 60 minutes.", + "valueSize": 4, + "unit": "minutes", + "minValue": 1, + "maxValue": 65535, + "defaultValue": 60 + }, + { + "#": "15", + "$if": "firmwareVersion >= 2.30", + "label": "Disable kWh Reports", + "description": "Disable or enable kWh reports sent from the plug. No kWh reports from the device connected to the plug will be sent back to the hub if kWh monitoring is disabled. Use this option to minimize the amount of reports you want the receive from the smart plug", + "valueSize": 1, + "defaultValue": 1, + "allowManualEntry": false, + "options": [ + { + "label": "kWh reports enabled", + "value": 0 + }, + { + "label": "kWh reports disabled", + "value": 1 + } + ] } ] } From 57611dd7f06b29ba5dcf5f6e2af2cc38dd379606 Mon Sep 17 00:00:00 2001 From: hceuterpe <4507166+hceuterpe@users.noreply.github.com> Date: Mon, 13 Jan 2025 12:54:43 -0600 Subject: [PATCH 2/2] Update zen04.json to review requests --- packages/config/config/devices/0x027a/zen04.json | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/packages/config/config/devices/0x027a/zen04.json b/packages/config/config/devices/0x027a/zen04.json index d8478c6b04f0..372f1b2354de 100644 --- a/packages/config/config/devices/0x027a/zen04.json +++ b/packages/config/config/devices/0x027a/zen04.json @@ -7,13 +7,7 @@ { "manufacturer": "Zooz", "manufacturerId": "0x027a", - "label": [ - { - "$if": "firmwareVersion >= 2.10", - "value": "ZEN04 800LR" - }, - "ZEN04" - ], + "label": "ZEN04", "description": "Indoor Smart Plug", "devices": [ { @@ -78,7 +72,6 @@ "#": "5", "$if": "firmwareVersion < 2.30", "label": "Power (W) Reporting Threshold", - "description": "Choose how you want your Smart Plug to report power consumption to your hub. The number entered as value corresponds to the number of Watts the appliance needs to go over for the change to be reported. So if 5 Watts are entered by default, the Smart Plug will report any change in power usage over 5 Watts (whether it’s at least 5 Watts more or 5 Watts less compared to the previous report).", "valueSize": 1, "unit": "W", "minValue": 5, @@ -89,7 +82,6 @@ "#": "5", "$if": "firmwareVersion >= 2.30", "label": "Power (W) Reporting Threshold", - "description": "Choose how you want your Smart Plug to report power consumption to your hub. The number entered as value corresponds to the number of Watts the appliance needs to go over for the change to be reported. So if 5 Watts are entered by default, the Smart Plug will report any change in power usage over 5 Watts (whether it’s at least 5 Watts more or 5 Watts less compared to the previous report).", "valueSize": 1, "unit": "W", "minValue": 0, @@ -122,7 +114,6 @@ "#": "7", "$if": "firmwareVersion < 2.30", "label": "Current (A) Reporting Threshold", - "description": "Choose how you want your Smart Plug to report electrical current (Amps) to your hub. The number entered as value corresponds to the number of Amps the appliance needs to go over for the change to be reported. Value 1 equals 0.1 A and value 10 equals 1 A. So if 1 is entered by default, the Smart Plug will report any change in electrical current over 0.1 Amps (whether it’s at least 0.1 A more or 0.1 A less compared to the previous report).", "valueSize": 1, "unit": "0.1 A", "minValue": 1, @@ -133,7 +124,6 @@ "#": "7", "$if": "firmwareVersion >= 2.30", "label": "Current (A) Reporting Threshold", - "description": "Choose how you want your Smart Plug to report electrical current (Amps) to your hub. The number entered as value corresponds to the number of Amps the appliance needs to go over for the change to be reported. Value 1 equals 0.1 A and value 10 equals 1 A. So if 1 is entered by default, the Smart Plug will report any change in electrical current over 0.1 Amps (whether it’s at least 0.1 A more or 0.1 A less compared to the previous report).", "valueSize": 1, "unit": "0.1 A", "minValue": 0, @@ -160,7 +150,6 @@ "#": "8", "$if": "firmwareVersion < 2.30", "label": "Energy (kWh) Reporting Threshold", - "description": "Choose how you want your Smart Plug to report energy use (kWh) to your hub. The number entered as value corresponds to the number of kWh the appliance needs to go over for the change to be reported. Value 1 equals 0.01 kWh and value 100 equals 1 kWh. So if 1 is entered by default, the Smart Plug will report any change in energy use over 0.01 kWh (whether it’s at least 0.01 kWh more or 0.01 kWh less compared to the previous report).", "valueSize": 1, "unit": "0.01 kWh", "minValue": 1, @@ -171,7 +160,6 @@ "#": "8", "$if": "firmwareVersion >= 2.30", "label": "Energy (kWh) Reporting Threshold", - "description": "Choose how you want your Smart Plug to report energy use (kWh) to your hub. The number entered as value corresponds to the number of kWh the appliance needs to go over for the change to be reported. Value 1 equals 0.01 kWh and value 100 equals 1 kWh. So if 1 is entered by default, the Smart Plug will report any change in energy use over 0.01 kWh (whether it’s at least 0.01 kWh more or 0.01 kWh less compared to the previous report).", "valueSize": 1, "unit": "0.01 kWh", "minValue": 0, @@ -205,7 +193,6 @@ "#": "14", "$if": "firmwareVersion >= 2.30", "label": "kWh Report Frequency", - "description": "The number entered as a value corresponds to the number of minutes. So if 60 is entered by default, the Plug will report energy consumption (kWh) every 60 minutes.", "valueSize": 4, "unit": "minutes", "minValue": 1, @@ -216,7 +203,6 @@ "#": "15", "$if": "firmwareVersion >= 2.30", "label": "Disable kWh Reports", - "description": "Disable or enable kWh reports sent from the plug. No kWh reports from the device connected to the plug will be sent back to the hub if kWh monitoring is disabled. Use this option to minimize the amount of reports you want the receive from the smart plug", "valueSize": 1, "defaultValue": 1, "allowManualEntry": false,