diff --git a/test_data/ref_10188/appliance_data.json b/test_data/ref_10188/appliance_data.json new file mode 100644 index 0000000..c47f697 --- /dev/null +++ b/test_data/ref_10188/appliance_data.json @@ -0,0 +1,138 @@ +{ + "id": 10188, + "code": "XX11X1X1111", + "applianceTypeId": 14, + "applianceTypeName": "REF", + "brand": "haier", + "connectivity": "wifi|ble", + "modelName": "HSW59F18EIPT", + "series": "multidoor", + "purchaseDate": "1970-01-01T00:00:00.0Z", + "fwVersion": "5.15.0", + "firstEnrollment": true, + "attributes": [ + { + "id": 55848, + "parName": "zones", + "parValue": "fridge|freezer", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55849, + "parName": "vtZone", + "parValue": "0", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55850, + "parName": "technology", + "parValue": "st", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55851, + "parName": "serviceability", + "parValue": "none", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55852, + "parName": "seriesVersion", + "parValue": "sd60Series1", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55853, + "parName": "series", + "parValue": "multidoor", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55854, + "parName": "sensor", + "parValue": "doorAlarmFridge|doorAlarmFreezer", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55855, + "parName": "option", + "parValue": "autoSet|superCool|superFreeze|holiday", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55856, + "parName": "lowerBarrierDate", + "parValue": "2235", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55857, + "parName": "interfaceType", + "parValue": "series|seriesVersion|installationType|doorNumber", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55858, + "parName": "installationType", + "parValue": "fs", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55859, + "parName": "enrollmentType", + "parValue": "app", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55860, + "parName": "doorNumber", + "parValue": "2", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 61437, + "parName": "fwLabel", + "parValue": "iotfw_epp", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 79266, + "parName": "plmCode", + "parValue": "34005274", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + } + ], + "defaultWarrantyYears": 2, + "applianceModelId": 10188, + "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": "XX11X1X1111XXX1X1111", + "nickName": "Xxxx11x1xxx", + "enrollmentDate": "1970-01-01T00:00:00.0Z", + "lastUpdate": "1970-01-01T00:00:00.0Z", + "eepromId": 41, + "applianceStatus": 1, + "coords": { + "lng": 11.1111111, + "lat": 11.1111111 + }, + "PK": "xxxx#xx-xxxx-1:1111x111-xx1x-1111-x1x1-11x11111x1x1" +} \ No newline at end of file diff --git a/test_data/ref_10188/attributes.json b/test_data/ref_10188/attributes.json new file mode 100644 index 0000000..691e6de --- /dev/null +++ b/test_data/ref_10188/attributes.json @@ -0,0 +1,120 @@ +{ + "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" + }, + "doorStatusZ2": { + "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": "-19", + "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" + }, + "transMode": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempZ1": { + "parNewVal": "-38", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "errors": { + "parNewVal": "00", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempZ2": { + "parNewVal": "-38", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "humidityEnv": { + "parNewVal": "60", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempEnv": { + "parNewVal": "23", + "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": "11x11xx11111x111", + "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": 1696091423107 + } +} \ No newline at end of file diff --git a/test_data/ref_10188/command_history.json b/test_data/ref_10188/command_history.json new file mode 100644 index 0000000..6a81f93 --- /dev/null +++ b/test_data/ref_10188/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:1111x111-xx1x-1111-x1x1-11x11111x1x1#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": "11x11xx11111x111", + "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:1111x111-xx1x-1111-x1x1-11x11111x1x1#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": "freezer", + "remoteVisible": "1" + }, + "applianceType": "REF", + "attributes": { + "channel": "mobileApp", + "origin": "standardProgram", + "energyLabel": "0" + }, + "device": { + "appVersion": "2.1.2", + "deviceModel": "exynos9820", + "osVersion": 31, + "mobileId": "11111x111x1xx111", + "mobileOs": "android" + }, + "parameters": { + "quickModeZ2": "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:1111x111-xx1x-1111-x1x1-11x11111x1x1#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": "11111x111x1xx111", + "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_10188/commands.json b/test_data/ref_10188/commands.json new file mode 100644 index 0000000..c25fedc --- /dev/null +++ b/test_data/ref_10188/commands.json @@ -0,0 +1,378 @@ +{ + "applianceModel": { + "id": 10188, + "name": "HSW59F18EIPT", + "code": "XX11X1X1111", + "applianceTypeId": 14, + "applianceTypeName": "REF", + "brand": "haier", + "connectivity": "wifi|ble", + "attributes": [ + { + "id": 55848, + "parName": "zones", + "parValue": "fridge|freezer", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55849, + "parName": "vtZone", + "parValue": "0", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55850, + "parName": "technology", + "parValue": "st", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55851, + "parName": "serviceability", + "parValue": "none", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55852, + "parName": "seriesVersion", + "parValue": "sd60Series1", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55853, + "parName": "series", + "parValue": "multidoor", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55854, + "parName": "sensor", + "parValue": "doorAlarmFridge|doorAlarmFreezer", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55855, + "parName": "option", + "parValue": "autoSet|superCool|superFreeze|holiday", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55856, + "parName": "lowerBarrierDate", + "parValue": "2235", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55857, + "parName": "interfaceType", + "parValue": "series|seriesVersion|installationType|doorNumber", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55858, + "parName": "installationType", + "parValue": "fs", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55859, + "parName": "enrollmentType", + "parValue": "app", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 55860, + "parName": "doorNumber", + "parValue": "2", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 61437, + "parName": "fwLabel", + "parValue": "iotfw_epp", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 79266, + "parName": "plmCode", + "parValue": "34005274", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + } + ], + "options": {} + }, + "settings": { + "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 + } + } + }, + "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" + } + } + } + }, + "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": "The command allows to start a program", + "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": "The command allows to start a program", + "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": "The command allows to start a program", + "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": "The command allows to start a program", + "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": 370 +} \ No newline at end of file diff --git a/test_data/ref_10188/maintenance.json b/test_data/ref_10188/maintenance.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test_data/ref_10188/maintenance.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test_data/ref_10188/statistics.json b/test_data/ref_10188/statistics.json new file mode 100644 index 0000000..4321dd9 --- /dev/null +++ b/test_data/ref_10188/statistics.json @@ -0,0 +1,5 @@ +{ + "mostUsedPrograms": [], + "mostUsedRecipes": [], + "programsCounter": 0 +} \ No newline at end of file