From fca3b70e533733fff4bf5ddbdef540fff1c68828 Mon Sep 17 00:00:00 2001 From: nepozs <56661567+nepozs@users.noreply.github.com> Date: Fri, 6 Sep 2024 23:30:05 +0200 Subject: [PATCH] Add files via upload Add `ref_570` appliance data --- test_data/ref_570/appliance_data.json | 1 + test_data/ref_570/attributes.json | 121 +++++ test_data/ref_570/command_history.json | 41 ++ test_data/ref_570/commands.json | 671 +++++++++++++++++++++++++ test_data/ref_570/maintenance.json | 9 + test_data/ref_570/statistics.json | 5 + 6 files changed, 848 insertions(+) create mode 100644 test_data/ref_570/appliance_data.json create mode 100644 test_data/ref_570/attributes.json create mode 100644 test_data/ref_570/command_history.json create mode 100644 test_data/ref_570/commands.json create mode 100644 test_data/ref_570/maintenance.json create mode 100644 test_data/ref_570/statistics.json diff --git a/test_data/ref_570/appliance_data.json b/test_data/ref_570/appliance_data.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test_data/ref_570/appliance_data.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test_data/ref_570/attributes.json b/test_data/ref_570/attributes.json new file mode 100644 index 0000000..f24025b --- /dev/null +++ b/test_data/ref_570/attributes.json @@ -0,0 +1,121 @@ +{ + "resultCode": "0", + "shadow": { + "parameters": { + "quickModeZ1": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "quickModeZ2": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "debugEnabled": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "doorStatusZ1": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "stdTransRate": { + "parNewVal": "3600", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "intelligenceMode": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "highTransRate": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "statusSyncRate": { + "parNewVal": "1440", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempSelZ2": { + "parNewVal": "-18", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "holidayMode": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempSelZ1": { + "parNewVal": "5", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempZ1": { + "parNewVal": "5", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "transMode": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempZ2": { + "parNewVal": "-18", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "errors": { + "parNewVal": "00", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempSelZ3": { + "parNewVal": "5", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "humidityEnv": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempEnv": { + "parNewVal": "25", + "lastUpdate": "1970-01-01T00:00:00.0Z" + } + } + }, + "activity": {}, + "commandHistory": { + "command": { + "macAddress": "xx-xx-xx-xx-xx-xx", + "commandName": "startProgram", + "applianceOptions": {}, + "programName": "PROGRAMS.REF.AUTO_SET", + "ancillaryParameters": { + "remoteActionable": "1", + "nameVariants": "series", + "programFamily": "[dashboard]", + "zone": "fridge", + "remoteVisible": "1" + }, + "applianceType": "REF", + "attributes": { + "channel": "mobileApp", + "origin": "standardProgram", + "energyLabel": "0" + }, + "device": { + "appVersion": "2.6.5", + "deviceModel": "pyhOn", + "osVersion": 999, + "mobileId": "xxxxxxxxxxxx", + "mobileOs": "android" + }, + "parameters": { + "intelligenceMode": "1" + }, + "transactionId": "xx-xx-xx-xx-xx-xx_1970-01-01T00:00:00.0Z", + "timestamp": "1970-01-01T00:00:00.0Z" + }, + "timestampAccepted": "1970-01-01T00:00:00.0Z", + "timestampExecuted": "1970-01-01T00:00:00.0Z" + }, + "lastConnEvent": { + "macAddress": "xx-xx-xx-xx-xx-xx", + "category": "CONNECTED", + "instantTime": "1970-01-01T00:00:00.0Z", + "timestampEvent": 1725635773096 + } +} \ No newline at end of file diff --git a/test_data/ref_570/command_history.json b/test_data/ref_570/command_history.json new file mode 100644 index 0000000..2800c2b --- /dev/null +++ b/test_data/ref_570/command_history.json @@ -0,0 +1,41 @@ +[ + { + "timestampAccepted": "1970-01-01T00:00:00.0Z", + "timestampExecuted": "1970-01-01T00:00:00.0Z", + "SK": "xxxXxxxxxx#xxxxxXxxxxxx#1111-11-11X11:11:11.1X", + "PK": "xxxx#xx-xxxx-1:x1x111x1-xxx1-x111-1x1x-111x111x11x1#xxx#xx-xx-xx-xx-xx-xx", + "SK_Secondary": "xxxXxxxxxx#1111-11-11X11:11:11.1X", + "command": { + "macAddress": "xx-xx-xx-xx-xx-xx", + "commandName": "startProgram", + "applianceOptions": {}, + "programName": "PROGRAMS.REF.AUTO_SET", + "ancillaryParameters": { + "remoteActionable": "1", + "nameVariants": "series", + "programFamily": "[dashboard]", + "zone": "fridge", + "remoteVisible": "1" + }, + "applianceType": "REF", + "attributes": { + "channel": "mobileApp", + "origin": "standardProgram", + "energyLabel": "0" + }, + "device": { + "appVersion": "2.6.5", + "deviceModel": "pyhOn", + "osVersion": 999, + "mobileId": "xxxxxxxxxxxx", + "mobileOs": "android" + }, + "parameters": { + "intelligenceMode": "1" + }, + "transactionId": "xx-xx-xx-xx-xx-xx_1970-01-01T00:00:00.0Z", + "timestamp": "1970-01-01T00:00:00.0Z" + }, + "lastUpdate": "1970-01-01T00:00:00.0Z" + } +] \ No newline at end of file diff --git a/test_data/ref_570/commands.json b/test_data/ref_570/commands.json new file mode 100644 index 0000000..6fc1ff2 --- /dev/null +++ b/test_data/ref_570/commands.json @@ -0,0 +1,671 @@ +{ + "applianceModel": { + "id": 570, + "name": "HTW7720ENMP", + "code": "X11XX1X1111", + "applianceTypeId": 14, + "applianceTypeName": "REF", + "brand": "haier", + "connectivity": "wifi|ble", + "attributes": [ + { + "id": 11668, + "parName": "lowerBarrierDate", + "parValue": "2001", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 11669, + "parName": "series", + "parValue": "multidoor", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 11670, + "parName": "seriesVersion", + "parValue": "3d70Series7", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 11671, + "parName": "installationType", + "parValue": "fs", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 11672, + "parName": "vtZone", + "parValue": "1", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 11673, + "parName": "doorNumber", + "parValue": "3", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 11674, + "parName": "sensor", + "parValue": "doorAlarmFridge|doorAlarmFreezer", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 11675, + "parName": "option", + "parValue": "autoSet|superCool|superFreeze|holiday|quickCool|zeroFresh|fruitAndVeg", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 11676, + "parName": "interfaceType", + "parValue": "series|seriesVersion|installationType|doorNumber", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16144, + "parName": "technology", + "parValue": "st", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 19267, + "parName": "enrollmentType", + "parValue": "app", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 28036, + "parName": "zones", + "parValue": "fridge|freezer|vtRoom1", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 38226, + "parName": "serviceability", + "parValue": "none", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 61606, + "parName": "fwLabel", + "parValue": "iotfw_epp", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 79311, + "parName": "plmCode", + "parValue": "34004867", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + } + ], + "options": {} + }, + "settings": { + "setParameters": { + "description": "The message allows to change parameters values to enable/disable specific features ", + "protocolType": "MQTT", + "parameters": { + "tempSelZ1": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "5", + "minimumValue": "1", + "maximumValue": "9", + "incrementValue": "1" + }, + "tempSelZ2": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "-18", + "minimumValue": "-24", + "maximumValue": "-14", + "incrementValue": "1" + } + }, + "ancillaryParameters": { + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "tempSelZ1": { + "@quickModeZ1": { + "1": { + "typology": "fixed", + "fixedValue": "1" + } + }, + "@quickModeZ2": { + "1": { + "typology": "fixed", + "fixedValue": "@tempSelZ1" + } + }, + "@intelligenceMode": { + "1": { + "typology": "fixed", + "fixedValue": "5" + } + }, + "@holidayMode": { + "1": { + "typology": "fixed", + "fixedValue": "17" + } + } + }, + "tempSelZ2": { + "@quickModeZ1": { + "1": { + "typology": "fixed", + "fixedValue": "@tempSelZ2" + } + }, + "@quickModeZ2": { + "1": { + "typology": "fixed", + "fixedValue": "-24" + } + }, + "@intelligenceMode": { + "1": { + "typology": "fixed", + "fixedValue": "-18" + } + }, + "@holidayMode": { + "1": { + "typology": "fixed", + "fixedValue": "@tempSelZ2" + } + } + } + } + } + } + }, + "setConfig": { + "description": "The message allows to set platform parameters", + "protocolType": "MQTT", + "parameters": { + "httpEndpoint": { + "category": "command", + "typology": "fixed", + "mandatory": 0 + }, + "mqttEndpoint": { + "category": "command", + "typology": "fixed", + "mandatory": 0 + } + } + } + }, + "stopProgram": { + "description": "The message allows to stop the program", + "protocolType": "MQTT", + "parameters": { + "quickModeZ1": { + "category": "command", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "0" + }, + "quickModeZ2": { + "category": "command", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "0" + }, + "intelligenceMode": { + "category": "command", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "0" + }, + "holidayMode": { + "category": "command", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "0" + } + } + }, + "startProgram": { + "PROGRAMS.REF.AUTO_SET": { + "description": "Automatical temperature setting : fridge at +5\u00b0C and freezer at -18\u00b0C", + "protocolType": "MQTT", + "parameters": { + "intelligenceMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + } + }, + "ancillaryParameters": { + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "dashboard" + ], + "defaultValue": "[dashboard]" + }, + "zone": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "fridge", + "freezer" + ], + "defaultValue": "[fridge|freezer]" + }, + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "tempSelZ1": { + "intelligenceMode": { + "1": { + "typology": "fixed", + "fixedValue": "5" + } + } + }, + "tempSelZ2": { + "intelligenceMode": { + "1": { + "typology": "fixed", + "fixedValue": "-18" + } + } + } + } + }, + "nameVariants": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "series" + } + } + }, + "PROGRAMS.REF.SUPER_COOL": { + "description": "Accelerate cooling achieving quickly nearly 1\u00b0C when you need to store a large quantity of food.", + "protocolType": "MQTT", + "parameters": { + "quickModeZ1": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + } + }, + "ancillaryParameters": { + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "dashboard" + ], + "defaultValue": "[dashboard]" + }, + "zone": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "fridge" + ], + "defaultValue": "[fridge]" + }, + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "tempSelZ1": { + "quickModeZ1": { + "1": { + "typology": "fixed", + "fixedValue": "1" + } + } + }, + "tempSelZ2": { + "quickModeZ1": { + "1": { + "typology": "fixed", + "fixedValue": "@tempSelZ2" + } + } + } + } + } + } + }, + "PROGRAMS.REF.SUPER_FREEZE": { + "description": "Accelerate freezing achieving quickly -24\u00b0C at your convenience. The function will automatically stop after 50 hours restoring the original freezer temperature", + "protocolType": "MQTT", + "parameters": { + "quickModeZ2": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + } + }, + "ancillaryParameters": { + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "dashboard" + ], + "defaultValue": "[dashboard]" + }, + "zone": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "freezer" + ], + "defaultValue": "[freezer]" + }, + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "tempSelZ1": { + "quickModeZ2": { + "1": { + "typology": "fixed", + "fixedValue": "@tempSelZ1" + } + } + }, + "tempSelZ2": { + "quickModeZ2": { + "1": { + "typology": "fixed", + "fixedValue": "-24" + } + } + } + } + } + } + }, + "PROGRAMS.REF.HOLIDAY": { + "description": "Set the refrigerator at 17\u00b0C and keep the freezer running for long period of absence.", + "protocolType": "MQTT", + "parameters": { + "holidayMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + } + }, + "ancillaryParameters": { + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "dashboard" + ], + "defaultValue": "[dashboard]" + }, + "zone": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "fridge" + ], + "defaultValue": "[fridge]" + }, + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "tempSelZ1": { + "holidayMode": { + "1": { + "typology": "fixed", + "fixedValue": "17" + } + } + }, + "tempSelZ2": { + "holidayMode": { + "1": { + "typology": "fixed", + "fixedValue": "@tempSelZ2" + } + } + }, + "tempSelZ3": { + "holidayMode": { + "1": { + "typology": "fixed", + "fixedValue": "17" + } + } + } + } + } + } + }, + "PROGRAMS.REF.QUICK_COOL": { + "description": "Set the drawer temperature at +2\u00b0C to store sensitive food such as cheeses, dairy products and fresh pasta.", + "protocolType": "MQTT", + "parameters": { + "tempSelZ3": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "2" + } + }, + "ancillaryParameters": { + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "dashboard" + ], + "defaultValue": "[dashboard]" + }, + "zone": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "vtRoom1" + ], + "defaultValue": "[vtRoom1]" + } + } + }, + "PROGRAMS.REF.ZERO_FRESH": { + "description": "Set the drawer temperature at 0\u00b0C to store fresh food like fish and/or meat.", + "protocolType": "MQTT", + "parameters": { + "tempSelZ3": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + } + }, + "ancillaryParameters": { + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "dashboard" + ], + "defaultValue": "[dashboard]" + }, + "zone": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "vtRoom1" + ], + "defaultValue": "[vtRoom1]" + } + } + }, + "PROGRAMS.REF.FRUIT_AND_VEG": { + "description": "Set this temperature level on your My Zone box to store fresh fruits and vegetables at the same fridge temperature", + "protocolType": "MQTT", + "parameters": { + "tempSelZ3": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "5" + } + }, + "ancillaryParameters": { + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "dashboard" + ], + "defaultValue": "[dashboard]" + }, + "zone": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "vtRoom1" + ], + "defaultValue": "[vtRoom1]" + } + } + } + }, + "options": {}, + "dictionaryId": 138 +} \ No newline at end of file diff --git a/test_data/ref_570/maintenance.json b/test_data/ref_570/maintenance.json new file mode 100644 index 0000000..2c2e2aa --- /dev/null +++ b/test_data/ref_570/maintenance.json @@ -0,0 +1,9 @@ +{ + "waterFilter": { + "lastReplacement": "1970-01-01T00:00:00.0Z", + "remainingDays": 180, + "totalDays": 180, + "percentage": 100 + }, + "lastCheckup": null +} \ No newline at end of file diff --git a/test_data/ref_570/statistics.json b/test_data/ref_570/statistics.json new file mode 100644 index 0000000..4321dd9 --- /dev/null +++ b/test_data/ref_570/statistics.json @@ -0,0 +1,5 @@ +{ + "mostUsedPrograms": [], + "mostUsedRecipes": [], + "programsCounter": 0 +} \ No newline at end of file