diff --git a/test_data/ref_10138/appliance_data.json b/test_data/ref_10138/appliance_data.json new file mode 100644 index 0000000..52138c8 --- /dev/null +++ b/test_data/ref_10138/appliance_data.json @@ -0,0 +1,138 @@ +{ + "id": 10138, + "code": "XX1X1XX1111", + "applianceTypeId": 14, + "applianceTypeName": "REF", + "brand": "haier", + "connectivity": "wifi|ble", + "modelName": "HTW5620DNMG", + "series": "romania", + "purchaseDate": "1970-01-01T00:00:00.0Z", + "fwVersion": "5.15.0", + "firstEnrollment": true, + "attributes": [ + { + "id": 37140, + "parName": "zones", + "parValue": "fridge|freezer|vtRoom1", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37156, + "parName": "vtZone", + "parValue": "1", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37172, + "parName": "technology", + "parValue": "st", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37188, + "parName": "seriesVersion", + "parValue": "3d60Series7", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37204, + "parName": "series", + "parValue": "romania", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37220, + "parName": "sensor", + "parValue": "doorAlarmFridge", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37236, + "parName": "option", + "parValue": "ecoMode|superCool|superFreeze|holiday", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37252, + "parName": "lowerBarrierDate", + "parValue": "2210", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37268, + "parName": "interfaceType", + "parValue": "series|seriesVersion|installationType|doorNumber", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37284, + "parName": "installationType", + "parValue": "fs", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37300, + "parName": "enrollmentType", + "parValue": "app", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37316, + "parName": "doorNumber", + "parValue": "3", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 39800, + "parName": "serviceability", + "parValue": "none", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 61452, + "parName": "fwLabel", + "parValue": "iotfw_epp", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 79298, + "parName": "plmCode", + "parValue": "34005437", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + } + ], + "defaultWarrantyYears": 2, + "applianceModelId": 10138, + "firstEnrollmentTBC": true, + "SK": "xxx#xx-xx-xx-xx-xx-xx", + "macAddress": "xx-xx-xx-xx-xx-xx", + "eepromName": "no_eeprom", + "applianceId": "xx-xx-xx-xx-xx-xx#1970-01-01T00:00:00.0Z", + "serialNumber": "XX1X1XX1111XXX1X1111", + "nickName": "Xx11xxxxxxxxxxx", + "enrollmentDate": "1970-01-01T00:00:00.0Z", + "lastUpdate": "1970-01-01T00:00:00.0Z", + "eepromId": 41, + "applianceStatus": 1, + "coords": { + "lng": 1.111111111111111, + "lat": 11.11111111111111 + }, + "PK": "xxxx#xx-xxxx-1:1x1111x1-111x-1xx1-111x-x11111111111" +} \ No newline at end of file diff --git a/test_data/ref_10138/attributes.json b/test_data/ref_10138/attributes.json new file mode 100644 index 0000000..a036244 --- /dev/null +++ b/test_data/ref_10138/attributes.json @@ -0,0 +1,112 @@ +{ + "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" + }, + "stdTransRate": { + "parNewVal": "3600", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "doorStatusZ1": { + "parNewVal": "0", + "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": "6", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "transMode": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "errors": { + "parNewVal": "00", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempSelZ3": { + "parNewVal": "2", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "humidityEnv": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempEnv": { + "parNewVal": "21", + "lastUpdate": "1970-01-01T00:00:00.0Z" + } + } + }, + "activity": {}, + "commandHistory": { + "command": { + "macAddress": "xx-xx-xx-xx-xx-xx", + "commandName": "startProgram", + "applianceOptions": {}, + "ancillaryParameters": { + "nameVariants": "series", + "remoteActionable": "1", + "programFamily": "[dashboard]", + "zone": "fridge_freezer", + "remoteVisible": "1" + }, + "applianceType": "REF", + "attributes": { + "channel": "mobileApp", + "origin": "standardProgram", + "energyLabel": "0" + }, + "device": { + "appVersion": "2.1.2", + "deviceModel": "exynos9820", + "osVersion": 31, + "mobileId": "x1xx1xx11111111x", + "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": 1699083142722 + } +} \ No newline at end of file diff --git a/test_data/ref_10138/command_history.json b/test_data/ref_10138/command_history.json new file mode 100644 index 0000000..6d4136b --- /dev/null +++ b/test_data/ref_10138/command_history.json @@ -0,0 +1,115 @@ +[ + { + "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:1x1111x1-111x-1xx1-111x-x11111111111#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": {}, + "ancillaryParameters": { + "nameVariants": "series", + "remoteActionable": "1", + "programFamily": "[dashboard]", + "zone": "fridge_freezer", + "remoteVisible": "1" + }, + "applianceType": "REF", + "attributes": { + "channel": "mobileApp", + "origin": "standardProgram", + "energyLabel": "0" + }, + "device": { + "appVersion": "2.1.2", + "deviceModel": "exynos9820", + "osVersion": 31, + "mobileId": "x1xx1xx11111111x", + "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" + }, + { + "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:1x1111x1-111x-1xx1-111x-x11111111111#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": {}, + "ancillaryParameters": { + "remoteActionable": "1", + "programFamily": "[dashboard]", + "zone": "[fridge]", + "remoteVisible": "1" + }, + "applianceType": "REF", + "attributes": { + "channel": "mobileApp", + "origin": "standardProgram", + "energyLabel": "0" + }, + "device": { + "appVersion": "2.1.2", + "deviceModel": "exynos9820", + "osVersion": 31, + "mobileId": "x1xx1xx11111111x", + "mobileOs": "android" + }, + "parameters": { + "holidayMode": "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" + }, + { + "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:1x1111x1-111x-1xx1-111x-x11111111111#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": {}, + "ancillaryParameters": { + "nameVariants": "series", + "remoteActionable": "1", + "programFamily": "[dashboard]", + "zone": "fridge_freezer", + "remoteVisible": "1" + }, + "applianceType": "REF", + "attributes": { + "channel": "mobileApp", + "origin": "standardProgram", + "energyLabel": "0" + }, + "device": { + "appVersion": "2.1.2", + "deviceModel": "exynos9820", + "osVersion": 31, + "mobileId": "x1xx1xx11111111x", + "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_10138/commands.json b/test_data/ref_10138/commands.json new file mode 100644 index 0000000..d291dde --- /dev/null +++ b/test_data/ref_10138/commands.json @@ -0,0 +1,387 @@ +{ + "applianceModel": { + "id": 10138, + "name": "HTW5620DNMG", + "code": "XX1X1XX1111", + "applianceTypeId": 14, + "applianceTypeName": "REF", + "brand": "haier", + "connectivity": "wifi|ble", + "attributes": [ + { + "id": 37140, + "parName": "zones", + "parValue": "fridge|freezer|vtRoom1", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37156, + "parName": "vtZone", + "parValue": "1", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37172, + "parName": "technology", + "parValue": "st", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37188, + "parName": "seriesVersion", + "parValue": "3d60Series7", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37204, + "parName": "series", + "parValue": "romania", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37220, + "parName": "sensor", + "parValue": "doorAlarmFridge", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37236, + "parName": "option", + "parValue": "ecoMode|superCool|superFreeze|holiday", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37252, + "parName": "lowerBarrierDate", + "parValue": "2210", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37268, + "parName": "interfaceType", + "parValue": "series|seriesVersion|installationType|doorNumber", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37284, + "parName": "installationType", + "parValue": "fs", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37300, + "parName": "enrollmentType", + "parValue": "app", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37316, + "parName": "doorNumber", + "parValue": "3", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 39800, + "parName": "serviceability", + "parValue": "none", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 61452, + "parName": "fwLabel", + "parValue": "iotfw_epp", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 79298, + "parName": "plmCode", + "parValue": "34005437", + "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": "2", + "maximumValue": "8", + "incrementValue": "1" + }, + "tempSelZ2": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "-18", + "minimumValue": "-24", + "maximumValue": "-16", + "incrementValue": "1" + }, + "tempSelZ3": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "1", + "minimumValue": "0", + "maximumValue": "5", + "incrementValue": "1" + } + } + }, + "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": { + "holidayMode": { + "category": "command", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "0" + }, + "intelligenceMode": { + "category": "command", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "0" + }, + "quickModeZ1": { + "category": "command", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "0" + }, + "quickModeZ2": { + "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": { + "nameVariants": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "series" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "dashboard" + ], + "defaultValue": "[dashboard]" + }, + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "zone": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "fridge", + "freezer" + ], + "defaultValue": "[fridge|freezer]" + } + } + }, + "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": { + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "dashboard" + ], + "defaultValue": "[dashboard]" + }, + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "zone": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "fridge" + ], + "defaultValue": "[fridge]" + } + } + }, + "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": { + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "dashboard" + ], + "defaultValue": "[dashboard]" + }, + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "zone": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "freezer" + ], + "defaultValue": "[freezer]" + } + } + }, + "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": { + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "dashboard" + ], + "defaultValue": "[dashboard]" + }, + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "zone": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "fridge" + ], + "defaultValue": "[fridge]" + } + } + } + }, + "options": {}, + "dictionaryId": 343 +} \ No newline at end of file diff --git a/test_data/ref_10138/maintenance.json b/test_data/ref_10138/maintenance.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test_data/ref_10138/maintenance.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test_data/ref_10138/statistics.json b/test_data/ref_10138/statistics.json new file mode 100644 index 0000000..4321dd9 --- /dev/null +++ b/test_data/ref_10138/statistics.json @@ -0,0 +1,5 @@ +{ + "mostUsedPrograms": [], + "mostUsedRecipes": [], + "programsCounter": 0 +} \ No newline at end of file