From 947e919e5aed8c1cad9ffb982eff2b824e1827ed Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Wed, 19 Jul 2023 23:58:19 +0200 Subject: [PATCH] Add more devices --- test_data/ac_397/appliance_data.json | 94 + test_data/ac_397/attributes.json | 359 +++ test_data/ac_397/command_history.json | 369 +++ test_data/ac_397/commands.json | 3157 ++++++++++++++++++++++++ test_data/ac_397/maintenance.json | 1 + test_data/ac_397/statistics.json | 21 + test_data/ref_571/appliance_data.json | 128 + test_data/ref_571/attributes.json | 120 + test_data/ref_571/command_history.json | 190 ++ test_data/ref_571/commands.json | 579 +++++ test_data/ref_571/maintenance.json | 1 + test_data/ref_571/statistics.json | 10 + 12 files changed, 5029 insertions(+) create mode 100644 test_data/ac_397/appliance_data.json create mode 100644 test_data/ac_397/attributes.json create mode 100644 test_data/ac_397/command_history.json create mode 100644 test_data/ac_397/commands.json create mode 100644 test_data/ac_397/maintenance.json create mode 100644 test_data/ac_397/statistics.json create mode 100644 test_data/ref_571/appliance_data.json create mode 100644 test_data/ref_571/attributes.json create mode 100644 test_data/ref_571/command_history.json create mode 100644 test_data/ref_571/commands.json create mode 100644 test_data/ref_571/maintenance.json create mode 100644 test_data/ref_571/statistics.json diff --git a/test_data/ac_397/appliance_data.json b/test_data/ac_397/appliance_data.json new file mode 100644 index 0000000..4c4e866 --- /dev/null +++ b/test_data/ac_397/appliance_data.json @@ -0,0 +1,94 @@ +{ + "id": 397, + "code": "XXXXX1X1111", + "applianceTypeId": 11, + "applianceTypeName": "AC", + "brand": "haier", + "connectivity": "wifi|ble", + "modelName": "AS35TEDHRA(M1)", + "series": "tundra", + "fwVersion": "5.15.0", + "unitConfiguration": "1to2", + "attributes": [ + { + "id": 9489, + "parName": "lowerBarrierDate", + "parValue": "2001", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 9490, + "parName": "type", + "parValue": "rac", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 9491, + "parName": "series", + "parValue": "tundra", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 9492, + "parName": "seriesVersion", + "parValue": "2.0", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 9493, + "parName": "installationType", + "parValue": "1to2|1toN", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 9494, + "parName": "interfaceType", + "parValue": "type|series|seriesVersion|option|windType|installationType", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 10689, + "parName": "windType", + "parValue": "vertical", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 38055, + "parName": "serviceability", + "parValue": "none", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 61292, + "parName": "fwLabel", + "parValue": "iotfw_epp", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + } + ], + "applianceModelId": 397, + "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": "XXXXX1X1111X1X1X1111", + "nickName": "Xxxxxxxx", + "enrollmentDate": "1970-01-01T00:00:00.0Z", + "lastUpdate": "1970-01-01T00:00:00.0Z", + "eepromId": 41, + "applianceStatus": 1, + "coords": { + "lng": 1, + "lat": 1 + }, + "PK": "xxxx#xx-xxxx-1:x1x11xxx-x1x1-1111-1111-1xxx11111x1x", + "SK_Secondary": "XX#xxxxXxxxx11#1111-11-11" +} \ No newline at end of file diff --git a/test_data/ac_397/attributes.json b/test_data/ac_397/attributes.json new file mode 100644 index 0000000..3a76e83 --- /dev/null +++ b/test_data/ac_397/attributes.json @@ -0,0 +1,359 @@ +{ + "resultCode": "0", + "shadow": { + "parameters": { + "tempCoilerIndoor": { + "parNewVal": "23.00", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempSel": { + "parNewVal": "28.00", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "totalWorkTime": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "halfDegreeSettingStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempAirOutdoor": { + "parNewVal": "31", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "co2ValueIndoor": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempInAirOutdoor": { + "parNewVal": "23", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "debugEnabled": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "selfCleaningStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "pm2p5ValueIndoor": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "fanStatusOutdoor": { + "parNewVal": "2", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempUnit": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "stdTransRate": { + "parNewVal": "3600", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "intelligenceStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "airQuality": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "machMode": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "humidityIndoor": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "energySavingStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "vocValueIndoor": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "errors": { + "parNewVal": "00", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "defrostStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "compressorFrequency": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempIndoor": { + "parNewVal": "28.50", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "healthMode": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "fourWayValveStatus": { + "parNewVal": "2", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "10degreeHeatingStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "freshAirStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "expansionValveOpenDegree": { + "parNewVal": "480", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "windDirectionVertical": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "muteStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "onOffStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "lockStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "ch2oCleaningStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "highTransRate": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "errAckFlag": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "windDirectionHorizontal": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "power": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "ch2oValueIndoor": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "machineModeHK": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "acType": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempCoilerOutdoor": { + "parNewVal": "23", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "pm2p5LevelIndoor": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "sensingResult": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "screenDisplayStatus": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "silentSleepStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "humanSensingStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "energySavePeriod": { + "parNewVal": "15", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "filterChangeStatusLocal": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempDefrostOutdoor": { + "parNewVal": "23", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "operationSource": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "pm2p5ValueOutdoor": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "lightStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "statusSyncRate": { + "parNewVal": "1440", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "electricHeatingStatusIndoor": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempOutdoor": { + "parNewVal": "28.00", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "pm2p5CleaningStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "compressorCurrent": { + "parNewVal": "51.10", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "humiditySel": { + "parNewVal": "30", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "pmvStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "operationName": { + "parNewVal": "", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "echoStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "windSpeed": { + "parNewVal": "5", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "specialMode": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "transMode": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "electricHeatingStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "compressorStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "humidificationStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "totalElectricityUsed": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "fanStatusIndoor": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "rapidMode": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + } + } + }, + "activity": {}, + "commandHistory": { + "command": { + "macAddress": "xx-xx-xx-xx-xx-xx", + "commandName": "stopProgram", + "applianceOptions": {}, + "ancillaryParameters": {}, + "applianceType": "AC", + "attributes": { + "channel": "mobileApp", + "origin": "standardProgram", + "energyLabel": "0" + }, + "device": { + "appVersion": "2.1.2", + "deviceModel": "exynos9820", + "osVersion": 31, + "mobileId": "x11xx11x11xx111x", + "mobileOs": "android" + }, + "parameters": { + "specialMode": "0", + "cleaningTimeStatus": "0", + "heatAccumulationStatus": "0", + "echoStatus": "0", + "tempSel": "22", + "healthMode": "0", + "humidificationStatus": "0", + "tempUnit": "0", + "screenDisplayStatus": "1", + "pmvStatus": "0", + "humiditySel": "30", + "windDirectionVertical": "5", + "lightStatus": "0", + "energySavingStatus": "0", + "lockStatus": "0", + "machMode": "0", + "windDirectionHorizontal": "0", + "freshAirStatus": "0", + "pm2p5CleaningStatus": "0", + "windSpeed": "5", + "onOffStatus": "0", + "electricHeatingStatus": "0", + "ch2oCleaningStatus": "0", + "filterChangeStatusCloud": "0", + "energySavePeriod": "15", + "intelligenceStatus": "0", + "rapidMode": "0", + "halfDegreeSettingStatus": "0", + "operationName": "grSetDAC", + "silentSleepStatus": "0", + "voiceSignStatus": "0", + "voiceStatus": "0", + "muteStatus": "0", + "10degreeHeatingStatus": "0", + "windSensingStatus": "0", + "selfCleaning56Status": "0", + "humanSensingStatus": "0", + "selfCleaningStatus": "0" + }, + "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": 1689614319249 + } +} \ No newline at end of file diff --git a/test_data/ac_397/command_history.json b/test_data/ac_397/command_history.json new file mode 100644 index 0000000..1927f7f --- /dev/null +++ b/test_data/ac_397/command_history.json @@ -0,0 +1,369 @@ +[ + { + "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:x1x11xxx-x1x1-1111-1111-1xxx11111x1x#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": "[standard]", + "remoteVisible": "1" + }, + "applianceType": "AC", + "attributes": { + "channel": "mobileApp", + "origin": "standardProgram", + "energyLabel": "0" + }, + "device": { + "appVersion": "2.1.2", + "deviceModel": "exynos9820", + "osVersion": 31, + "mobileId": "x11xx11x11xx111x", + "mobileOs": "android" + }, + "parameters": { + "specialMode": "0", + "cleaningTimeStatus": "0", + "heatAccumulationStatus": "0", + "echoStatus": "0", + "tempSel": "22", + "healthMode": "0", + "humidificationStatus": "0", + "tempUnit": "0", + "screenDisplayStatus": "1", + "pmvStatus": "0", + "humiditySel": "30", + "windDirectionVertical": "5", + "lightStatus": "0", + "energySavingStatus": "0", + "lockStatus": "0", + "machMode": "2", + "windDirectionHorizontal": "0", + "freshAirStatus": "0", + "pm2p5CleaningStatus": "0", + "windSpeed": "5", + "onOffStatus": "1", + "electricHeatingStatus": "0", + "ch2oCleaningStatus": "0", + "filterChangeStatusCloud": "0", + "energySavePeriod": "15", + "intelligenceStatus": "0", + "rapidMode": "0", + "halfDegreeSettingStatus": "0", + "operationName": "grSetDAC", + "silentSleepStatus": "0", + "voiceSignStatus": "0", + "voiceStatus": "0", + "muteStatus": "0", + "10degreeHeatingStatus": "0", + "windSensingStatus": "0", + "selfCleaning56Status": "0", + "humanSensingStatus": "0", + "selfCleaningStatus": "0" + }, + "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:x1x11xxx-x1x1-1111-1111-1xxx11111x1x#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", + "ecoMode": "0", + "programFamily": "[standard]", + "remoteVisible": "1" + }, + "applianceType": "AC", + "attributes": { + "channel": "mobileApp", + "origin": "standardProgram", + "energyLabel": "0" + }, + "device": { + "appVersion": "2.0.10", + "deviceModel": "exynos9820", + "osVersion": 31, + "mobileId": "xx1111x1xx111xx1", + "mobileOs": "android" + }, + "parameters": { + "specialMode": "0", + "cleaningTimeStatus": "0", + "heatAccumulationStatus": "0", + "echoStatus": "0", + "tempSel": "22", + "healthMode": "0", + "humidificationStatus": "0", + "tempUnit": "0", + "screenDisplayStatus": "1", + "pmvStatus": "0", + "humiditySel": "30", + "windDirectionVertical": "5", + "lightStatus": "0", + "energySavingStatus": "0", + "lockStatus": "0", + "machMode": "1", + "windDirectionHorizontal": "0", + "freshAirStatus": "0", + "pm2p5CleaningStatus": "0", + "windSpeed": "5", + "onOffStatus": "1", + "electricHeatingStatus": "0", + "ch2oCleaningStatus": "0", + "filterChangeStatusCloud": "0", + "energySavePeriod": "15", + "intelligenceStatus": "0", + "rapidMode": "0", + "halfDegreeSettingStatus": "0", + "operationName": "grSetDAC", + "silentSleepStatus": "0", + "voiceSignStatus": "0", + "voiceStatus": "0", + "muteStatus": "0", + "10degreeHeatingStatus": "0", + "windSensingStatus": "0", + "selfCleaning56Status": "0", + "humanSensingStatus": "0", + "selfCleaningStatus": "0" + }, + "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:x1x11xxx-x1x1-1111-1111-1xxx11111x1x#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": "[standard]", + "remoteVisible": "1" + }, + "applianceType": "AC", + "attributes": { + "channel": "mobileApp", + "origin": "standardProgram", + "energyLabel": "0" + }, + "device": { + "appVersion": "2.0.10", + "deviceModel": "exynos9820", + "osVersion": 31, + "mobileId": "xx1111x1xx111xx1", + "mobileOs": "android" + }, + "parameters": { + "specialMode": "0", + "cleaningTimeStatus": "0", + "heatAccumulationStatus": "0", + "echoStatus": "0", + "tempSel": "22", + "healthMode": "0", + "humidificationStatus": "0", + "tempUnit": "0", + "screenDisplayStatus": "1", + "pmvStatus": "0", + "humiditySel": "30", + "windDirectionVertical": "5", + "lightStatus": "0", + "energySavingStatus": "0", + "lockStatus": "0", + "machMode": "2", + "windDirectionHorizontal": "0", + "freshAirStatus": "0", + "pm2p5CleaningStatus": "0", + "windSpeed": "5", + "onOffStatus": "1", + "electricHeatingStatus": "0", + "ch2oCleaningStatus": "0", + "filterChangeStatusCloud": "0", + "energySavePeriod": "15", + "intelligenceStatus": "0", + "rapidMode": "0", + "halfDegreeSettingStatus": "0", + "operationName": "grSetDAC", + "silentSleepStatus": "0", + "voiceSignStatus": "0", + "voiceStatus": "0", + "muteStatus": "0", + "10degreeHeatingStatus": "0", + "windSensingStatus": "0", + "selfCleaning56Status": "0", + "humanSensingStatus": "0", + "selfCleaningStatus": "0" + }, + "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:x1x11xxx-x1x1-1111-1111-1xxx11111x1x#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", + "ecoMode": "0", + "programFamily": "[standard]", + "remoteVisible": "1" + }, + "applianceType": "AC", + "attributes": { + "channel": "mobileApp", + "origin": "standardProgram", + "energyLabel": "0" + }, + "device": { + "appVersion": "2.0.10", + "deviceModel": "exynos9820", + "osVersion": 31, + "mobileId": "xx1111x1xx111xx1", + "mobileOs": "android" + }, + "parameters": { + "specialMode": "0", + "cleaningTimeStatus": "0", + "heatAccumulationStatus": "0", + "echoStatus": "0", + "tempSel": "22", + "healthMode": "0", + "humidificationStatus": "0", + "tempUnit": "0", + "screenDisplayStatus": "1", + "pmvStatus": "0", + "humiditySel": "30", + "windDirectionVertical": "5", + "lightStatus": "0", + "energySavingStatus": "0", + "lockStatus": "0", + "machMode": "1", + "windDirectionHorizontal": "0", + "freshAirStatus": "0", + "pm2p5CleaningStatus": "0", + "windSpeed": "5", + "onOffStatus": "1", + "electricHeatingStatus": "0", + "ch2oCleaningStatus": "0", + "filterChangeStatusCloud": "0", + "energySavePeriod": "15", + "intelligenceStatus": "0", + "rapidMode": "0", + "halfDegreeSettingStatus": "0", + "operationName": "grSetDAC", + "silentSleepStatus": "0", + "voiceSignStatus": "0", + "voiceStatus": "0", + "muteStatus": "0", + "10degreeHeatingStatus": "0", + "windSensingStatus": "0", + "selfCleaning56Status": "0", + "humanSensingStatus": "0", + "selfCleaningStatus": "0" + }, + "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:x1x11xxx-x1x1-1111-1111-1xxx11111x1x#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": "[standard]", + "remoteVisible": "1" + }, + "applianceType": "AC", + "attributes": { + "channel": "mobileApp", + "origin": "standardProgram", + "energyLabel": "0" + }, + "device": { + "appVersion": "2.0.10", + "deviceModel": "exynos9820", + "osVersion": 31, + "mobileId": "xx1111x1xx111xx1", + "mobileOs": "android" + }, + "parameters": { + "specialMode": "0", + "cleaningTimeStatus": "0", + "heatAccumulationStatus": "0", + "echoStatus": "0", + "tempSel": "22", + "healthMode": "0", + "humidificationStatus": "0", + "tempUnit": "0", + "screenDisplayStatus": "1", + "pmvStatus": "0", + "humiditySel": "30", + "windDirectionVertical": "5", + "lightStatus": "0", + "energySavingStatus": "0", + "lockStatus": "0", + "machMode": "2", + "windDirectionHorizontal": "0", + "freshAirStatus": "0", + "pm2p5CleaningStatus": "0", + "windSpeed": "5", + "onOffStatus": "1", + "electricHeatingStatus": "0", + "ch2oCleaningStatus": "0", + "filterChangeStatusCloud": "0", + "energySavePeriod": "15", + "intelligenceStatus": "0", + "rapidMode": "0", + "halfDegreeSettingStatus": "0", + "operationName": "grSetDAC", + "silentSleepStatus": "0", + "voiceSignStatus": "0", + "voiceStatus": "0", + "muteStatus": "0", + "10degreeHeatingStatus": "0", + "windSensingStatus": "0", + "selfCleaning56Status": "0", + "humanSensingStatus": "0", + "selfCleaningStatus": "0" + }, + "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/ac_397/commands.json b/test_data/ac_397/commands.json new file mode 100644 index 0000000..051f97e --- /dev/null +++ b/test_data/ac_397/commands.json @@ -0,0 +1,3157 @@ +{ + "applianceModel": { + "id": 397, + "name": "AS35TEDHRA(M1)", + "code": "XXXXX1X1111", + "applianceTypeId": 11, + "applianceTypeName": "AC", + "brand": "haier", + "connectivity": "wifi|ble", + "attributes": [ + { + "id": 9489, + "parName": "lowerBarrierDate", + "parValue": "2001", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 9490, + "parName": "type", + "parValue": "rac", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 9491, + "parName": "series", + "parValue": "tundra", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 9492, + "parName": "seriesVersion", + "parValue": "2.0", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 9493, + "parName": "installationType", + "parValue": "1to2|1toN", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 9494, + "parName": "interfaceType", + "parValue": "type|series|seriesVersion|option|windType|installationType", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 10689, + "parName": "windType", + "parValue": "vertical", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 38055, + "parName": "serviceability", + "parValue": "none", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 61292, + "parName": "fwLabel", + "parValue": "iotfw_epp", + "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": { + "10degreeHeatingStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "ch2oCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "cleaningTimeStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "echoStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "electricHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "energySavePeriod": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "15" + }, + "energySavingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "filterChangeStatusCloud": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "freshAirStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "halfDegreeSettingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "healthMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "heatAccumulationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humanSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humidificationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humiditySel": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "30" + }, + "intelligenceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lightStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lockStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "machMode": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "0", + "enumValues": [ + 0, + 1, + 2, + 4, + 6 + ] + }, + "muteStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "onOffStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "operationName": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "grSetDAC" + }, + "pm2p5CleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "pmvStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "rapidMode": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "screenDisplayStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "1", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "selfCleaning56Status": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "selfCleaningStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "silentSleepStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "specialMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "tempSel": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "22", + "minimumValue": "16", + "maximumValue": "30", + "incrementValue": "1" + }, + "tempUnit": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceSignStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionHorizontal": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionVertical": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 2, + 4, + 5, + 6, + 7, + 8 + ] + }, + "windSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windSpeed": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 1, + 2, + 3, + 5 + ] + } + }, + "ancillaryParameters": { + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "selfCleaningStatus": { + "$installationType": { + "1toN": { + "typology": "fixed", + "fixedValue": "0" + } + } + }, + "selfCleaning56Status": { + "$installationType": { + "1to1": { + "typology": "fixed", + "fixedValue": "0" + }, + "1to2": { + "typology": "fixed", + "fixedValue": "0" + }, + "1toN": { + "typology": "fixed", + "fixedValue": "0" + } + } + } + } + } + } + }, + "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": { + "10degreeHeatingStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "ch2oCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "cleaningTimeStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "echoStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "electricHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "energySavePeriod": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "15" + }, + "energySavingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "filterChangeStatusCloud": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "freshAirStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "halfDegreeSettingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "healthMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "heatAccumulationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humanSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humidificationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humiditySel": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "30" + }, + "intelligenceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lightStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lockStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "machMode": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "0", + "enumValues": [ + 0, + 1, + 2, + 4, + 6 + ] + }, + "muteStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "onOffStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "operationName": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "grSetDAC" + }, + "pm2p5CleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "pmvStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "rapidMode": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "screenDisplayStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "1", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "selfCleaning56Status": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "selfCleaningStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "silentSleepStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "specialMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "tempSel": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "22", + "minimumValue": "16", + "maximumValue": "30", + "incrementValue": "1" + }, + "tempUnit": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceSignStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionHorizontal": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionVertical": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 2, + 4, + 5, + 6, + 7, + 8 + ] + }, + "windSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windSpeed": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 1, + 2, + 3, + 5 + ] + } + } + }, + "startProgram": { + "PROGRAMS.AC.IOT_SIMPLE_START": { + "description": "The command allows to start a program", + "protocolType": "MQTT", + "parameters": { + "10degreeHeatingStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "ch2oCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "cleaningTimeStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "echoStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "electricHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "energySavePeriod": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "15" + }, + "energySavingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "filterChangeStatusCloud": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "freshAirStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "halfDegreeSettingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "healthMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "heatAccumulationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humanSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humidificationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humiditySel": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "30" + }, + "intelligenceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lightStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lockStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "machMode": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "0", + "enumValues": [ + 0, + 1, + 2, + 4, + 6 + ] + }, + "muteStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "onOffStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "operationName": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "grSetDAC" + }, + "pm2p5CleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "pmvStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "rapidMode": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "screenDisplayStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "1", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "selfCleaning56Status": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "selfCleaningStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "silentSleepStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "specialMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "tempSel": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "22", + "minimumValue": "16", + "maximumValue": "30", + "incrementValue": "1" + }, + "tempUnit": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceSignStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionHorizontal": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionVertical": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 2, + 4, + 5, + 6, + 7, + 8 + ] + }, + "windSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windSpeed": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 1, + 2, + 3, + 5 + ] + } + }, + "ancillaryParameters": { + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "selfCleaningStatus": { + "$installationType": { + "1toN": { + "typology": "fixed", + "fixedValue": "0" + } + } + }, + "selfCleaning56Status": { + "$installationType": { + "1to1": { + "typology": "fixed", + "fixedValue": "0" + }, + "1to2": { + "typology": "fixed", + "fixedValue": "0" + }, + "1toN": { + "typology": "fixed", + "fixedValue": "0" + } + } + } + } + }, + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "0" + } + } + }, + "PROGRAMS.AC.IOT_HEAT": { + "description": "The command allows to start a program", + "protocolType": "MQTT", + "parameters": { + "10degreeHeatingStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "ch2oCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "cleaningTimeStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "echoStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "electricHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "energySavePeriod": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "15" + }, + "energySavingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "filterChangeStatusCloud": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "freshAirStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "halfDegreeSettingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "healthMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "heatAccumulationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humanSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humidificationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humiditySel": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "30" + }, + "intelligenceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lightStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lockStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "machMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "4" + }, + "muteStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "onOffStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "operationName": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "grSetDAC" + }, + "pm2p5CleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "pmvStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "rapidMode": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "screenDisplayStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "1", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "selfCleaning56Status": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "selfCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "silentSleepStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "specialMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "tempSel": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "22", + "minimumValue": "16", + "maximumValue": "30", + "incrementValue": "1" + }, + "tempUnit": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceSignStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionHorizontal": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionVertical": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 2, + 4, + 5, + 6, + 7, + 8 + ] + }, + "windSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windSpeed": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 1, + 2, + 3, + 5 + ] + } + }, + "ancillaryParameters": { + "ecoMode": { + "category": "general", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "standard" + ], + "defaultValue": "[standard]" + }, + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "tempSel": { + "ecoMode": { + "1": { + "machMode": { + "1": { + "typology": "fixed", + "fixedValue": "26" + }, + "4": { + "typology": "fixed", + "fixedValue": "20" + } + } + } + } + }, + "windSpeed": { + "ecoMode": { + "1": { + "machMode": { + "1|4": { + "typology": "enum", + "defaultValue": "1", + "enumValues": "1|2|3|5" + } + } + } + } + }, + "windDirectionVertical": { + "ecoMode": { + "1": { + "machMode": { + "1|4": { + "typology": "fixed", + "fixedValue": "3" + } + } + } + } + } + } + }, + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + } + } + }, + "PROGRAMS.AC.IOT_COOL": { + "description": "The command allows to start a program", + "protocolType": "MQTT", + "parameters": { + "10degreeHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "ch2oCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "cleaningTimeStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "echoStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "electricHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "energySavePeriod": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "15" + }, + "energySavingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "filterChangeStatusCloud": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "freshAirStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "halfDegreeSettingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "healthMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "heatAccumulationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humanSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humidificationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humiditySel": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "30" + }, + "intelligenceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lightStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lockStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "machMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "muteStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "onOffStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "operationName": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "grSetDAC" + }, + "pm2p5CleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "pmvStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "rapidMode": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "screenDisplayStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "1", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "selfCleaning56Status": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "selfCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "silentSleepStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "specialMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "tempSel": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "22", + "minimumValue": "16", + "maximumValue": "30", + "incrementValue": "1" + }, + "tempUnit": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceSignStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionHorizontal": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionVertical": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 2, + 4, + 5, + 6, + 8 + ] + }, + "windSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windSpeed": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 1, + 2, + 3, + 5 + ] + } + }, + "ancillaryParameters": { + "ecoMode": { + "category": "general", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "standard" + ], + "defaultValue": "[standard]" + }, + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "tempSel": { + "ecoMode": { + "1": { + "machMode": { + "1": { + "typology": "fixed", + "fixedValue": "26" + }, + "4": { + "typology": "fixed", + "fixedValue": "20" + } + } + } + } + }, + "windSpeed": { + "ecoMode": { + "1": { + "machMode": { + "1|4": { + "typology": "enum", + "defaultValue": "1", + "enumValues": "1|2|3|5" + } + } + } + } + }, + "windDirectionVertical": { + "ecoMode": { + "1": { + "machMode": { + "1|4": { + "typology": "fixed", + "fixedValue": "3" + } + } + } + } + } + } + }, + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + } + } + }, + "PROGRAMS.AC.IOT_DRY": { + "description": "The command allows to start a program", + "protocolType": "MQTT", + "parameters": { + "10degreeHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "ch2oCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "cleaningTimeStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "echoStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "electricHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "energySavePeriod": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "15" + }, + "energySavingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "filterChangeStatusCloud": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "freshAirStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "halfDegreeSettingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "healthMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "heatAccumulationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humanSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humidificationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humiditySel": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "30" + }, + "intelligenceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lightStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lockStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "machMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "2" + }, + "muteStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "onOffStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "operationName": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "grSetDAC" + }, + "pm2p5CleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "pmvStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "rapidMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "screenDisplayStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "1", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "selfCleaning56Status": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "selfCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "silentSleepStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "specialMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "tempSel": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "22", + "minimumValue": "16", + "maximumValue": "30", + "incrementValue": "1" + }, + "tempUnit": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceSignStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionHorizontal": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionVertical": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 2, + 4, + 5, + 6, + 8 + ] + }, + "windSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windSpeed": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 1, + 2, + 3, + 5 + ] + } + }, + "ancillaryParameters": { + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "standard" + ], + "defaultValue": "[standard]" + }, + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + } + } + }, + "PROGRAMS.AC.IOT_AUTO": { + "description": "The command allows to start a program", + "protocolType": "MQTT", + "parameters": { + "10degreeHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "ch2oCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "cleaningTimeStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "echoStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "electricHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "energySavePeriod": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "15" + }, + "energySavingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "filterChangeStatusCloud": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "freshAirStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "halfDegreeSettingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "healthMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "heatAccumulationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humanSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humidificationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humiditySel": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "30" + }, + "intelligenceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lightStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lockStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "machMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "muteStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "onOffStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "operationName": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "grSetDAC" + }, + "pm2p5CleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "pmvStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "rapidMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "screenDisplayStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "1", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "selfCleaning56Status": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "selfCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "silentSleepStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "specialMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "tempSel": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "24", + "minimumValue": "16", + "maximumValue": "30", + "incrementValue": "1" + }, + "tempUnit": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceSignStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionHorizontal": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionVertical": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 2, + 4, + 5, + 6, + 7, + 8 + ] + }, + "windSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windSpeed": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 1, + 2, + 3, + 5 + ] + } + }, + "ancillaryParameters": { + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "standard" + ], + "defaultValue": "[standard]" + }, + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + } + } + }, + "PROGRAMS.AC.IOT_FAN": { + "description": "The command allows to start a program", + "protocolType": "MQTT", + "parameters": { + "10degreeHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "ch2oCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "cleaningTimeStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "echoStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "electricHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "energySavePeriod": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "15" + }, + "energySavingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "filterChangeStatusCloud": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "freshAirStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "halfDegreeSettingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "healthMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "heatAccumulationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humanSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humidificationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humiditySel": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "30" + }, + "intelligenceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lightStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lockStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "machMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "6" + }, + "muteStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "onOffStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "operationName": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "grSetDAC" + }, + "pm2p5CleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "pmvStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "rapidMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "screenDisplayStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "1", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "selfCleaning56Status": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "selfCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "silentSleepStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "specialMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "tempSel": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "22", + "minimumValue": "16", + "maximumValue": "30", + "incrementValue": "1" + }, + "tempUnit": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceSignStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionHorizontal": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionVertical": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 2, + 4, + 5, + 6, + 7, + 8 + ] + }, + "windSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windSpeed": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "3", + "enumValues": [ + 1, + 2, + 3 + ] + } + }, + "ancillaryParameters": { + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "standard" + ], + "defaultValue": "[standard]" + }, + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + } + } + }, + "PROGRAMS.AC.IOT_SELF_CLEAN": { + "description": "The command allows to start a program", + "protocolType": "MQTT", + "parameters": { + "10degreeHeatingStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "ch2oCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "cleaningTimeStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "echoStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "electricHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "energySavePeriod": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "15" + }, + "energySavingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "filterChangeStatusCloud": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "freshAirStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "halfDegreeSettingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "healthMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "heatAccumulationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humanSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humidificationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humiditySel": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "30" + }, + "intelligenceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lightStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lockStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "machMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "2" + }, + "muteStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "onOffStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "operationName": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "grSetDAC" + }, + "pm2p5CleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "pmvStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "rapidMode": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "screenDisplayStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "1", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "selfCleaning56Status": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "selfCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "silentSleepStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "specialMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "tempSel": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "22", + "minimumValue": "16", + "maximumValue": "30", + "incrementValue": "1" + }, + "tempUnit": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceSignStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionHorizontal": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionVertical": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 2, + 4, + 5, + 6, + 7, + 8 + ] + }, + "windSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windSpeed": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 1, + 2, + 3, + 5 + ] + } + }, + "ancillaryParameters": { + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "maintenance", + "health" + ], + "defaultValue": "[maintenance|health]" + }, + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "remoteVisible": { + "$installationType": { + "1toN": { + "typology": "fixed", + "fixedValue": "0" + } + } + }, + "remoteActionable": { + "$installationType": { + "1toN": { + "typology": "fixed", + "fixedValue": "0" + } + } + } + } + }, + "remoteActionable": { + "category": "general", + "typology": "range", + "mandatory": 0, + "defaultValue": "1", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "range", + "mandatory": 0, + "defaultValue": "1", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + } + } + }, + "PROGRAMS.AC.IOT_10_HEATING": { + "description": "The command allows to start a program", + "protocolType": "MQTT", + "parameters": { + "10degreeHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "ch2oCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "cleaningTimeStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "echoStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "electricHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "energySavePeriod": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "15" + }, + "energySavingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "filterChangeStatusCloud": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "freshAirStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "halfDegreeSettingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "healthMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "heatAccumulationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humanSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humidificationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humiditySel": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "30" + }, + "intelligenceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lightStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lockStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "machMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "4" + }, + "muteStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "onOffStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "operationName": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "grSetDAC" + }, + "pm2p5CleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "pmvStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "rapidMode": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "screenDisplayStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "1", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "selfCleaning56Status": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "selfCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "silentSleepStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "specialMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "tempSel": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "22", + "minimumValue": "16", + "maximumValue": "30", + "incrementValue": "1" + }, + "tempUnit": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceSignStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "voiceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionHorizontal": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windDirectionVertical": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 2, + 4, + 5, + 6, + 7, + 8 + ] + }, + "windSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windSpeed": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 1, + 2, + 3, + 5 + ] + } + }, + "ancillaryParameters": { + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "standard" + ], + "defaultValue": "[standard]" + }, + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + } + } + } + }, + "options": {}, + "dictionaryId": 180 +} \ No newline at end of file diff --git a/test_data/ac_397/maintenance.json b/test_data/ac_397/maintenance.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test_data/ac_397/maintenance.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test_data/ac_397/statistics.json b/test_data/ac_397/statistics.json new file mode 100644 index 0000000..2f91807 --- /dev/null +++ b/test_data/ac_397/statistics.json @@ -0,0 +1,21 @@ +{ + "mostUsedPrograms": [ + { + "count": 72, + "programName": "PROGRAMS.AC.HOME_ASSISTANT", + "prCode": null + }, + { + "count": 4, + "programName": "PROGRAMS.AC.IOT_COOL", + "prCode": null + }, + { + "count": 1, + "programName": "IOT_SIMPLE_START", + "prCode": null + } + ], + "mostUsedRecipes": [], + "programsCounter": 0 +} \ No newline at end of file diff --git a/test_data/ref_571/appliance_data.json b/test_data/ref_571/appliance_data.json new file mode 100644 index 0000000..90a841f --- /dev/null +++ b/test_data/ref_571/appliance_data.json @@ -0,0 +1,128 @@ +{ + "id": 571, + "code": "X11X11X1111", + "applianceTypeId": 14, + "applianceTypeName": "REF", + "brand": "haier", + "connectivity": "wifi|ble", + "modelName": "HFW7819EWMP", + "series": "multidoor", + "purchaseDate": "1970-01-01T00:00:00.0Z", + "fwVersion": "5.15.0", + "attributes": [ + { + "id": 16016, + "parName": "lowerBarrierDate", + "parValue": "2101", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16017, + "parName": "series", + "parValue": "multidoor", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16018, + "parName": "seriesVersion", + "parValue": "fd83Series7", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16019, + "parName": "installationType", + "parValue": "fs", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16020, + "parName": "vtZone", + "parValue": "1", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16021, + "parName": "doorNumber", + "parValue": "4", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16022, + "parName": "sensor", + "parValue": "doorAlarmFridge", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16023, + "parName": "option", + "parValue": "autoSet|superFreeze|holiday|cheese|zeroFresh|fruitAndVeg", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16024, + "parName": "technology", + "parValue": "st", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16025, + "parName": "interfaceType", + "parValue": "series|seriesVersion|installationType|doorNumber", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 19266, + "parName": "enrollmentType", + "parValue": "app", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 28037, + "parName": "zones", + "parValue": "fridge|freezer|vtRoom1", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 38227, + "parName": "serviceability", + "parValue": "none", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 61607, + "parName": "fwLabel", + "parValue": "iotfw_epp", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + } + ], + "applianceModelId": 571, + "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": "X11X11X1111XXX111111", + "nickName": "Xxxxxxx11xxxxxx", + "enrollmentDate": "1970-01-01T00:00:00.0Z", + "lastUpdate": "1970-01-01T00:00:00.0Z", + "eepromId": 41, + "applianceStatus": 1, + "coords": { + "lng": -1.111111, + "lat": 11.1111111 + }, + "PK": "xxxx#xx-xxxx-1:xx11x111-1x11-1111-11x1-x1x1xxxxx1x1" +} \ No newline at end of file diff --git a/test_data/ref_571/attributes.json b/test_data/ref_571/attributes.json new file mode 100644 index 0000000..15bc5d7 --- /dev/null +++ b/test_data/ref_571/attributes.json @@ -0,0 +1,120 @@ +{ + "resultCode": "0", + "shadow": { + "parameters": { + "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" + }, + "door2StatusZ1": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "door2StatusZ2": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "doorStatusZ2": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "intelligenceMode": { + "parNewVal": "0", + "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" + }, + "transMode": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempZ1": { + "parNewVal": "5", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "errors": { + "parNewVal": "00", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempZ2": { + "parNewVal": "-18", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempSelZ3": { + "parNewVal": "5", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "humidityLevel": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + } + } + }, + "activity": {}, + "commandHistory": { + "command": { + "macAddress": "xx-xx-xx-xx-xx-xx", + "commandName": "stopProgram", + "applianceOptions": {}, + "ancillaryParameters": {}, + "applianceType": "REF", + "attributes": { + "channel": "mobileApp", + "origin": "standardProgram", + "energyLabel": "0" + }, + "device": { + "appVersion": "2.1.2", + "deviceModel": "exynos9820", + "osVersion": 31, + "mobileId": "11xx1x11x1x1x111", + "mobileOs": "android" + }, + "parameters": { + "quickModeZ2": "0", + "holidayMode": "0", + "intelligenceMode": "0" + }, + "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": 1689293819305 + } +} \ No newline at end of file diff --git a/test_data/ref_571/command_history.json b/test_data/ref_571/command_history.json new file mode 100644 index 0000000..526c78c --- /dev/null +++ b/test_data/ref_571/command_history.json @@ -0,0 +1,190 @@ +[ + { + "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:xx11x111-1x11-1111-11x1-x1x1xxxxx1x1#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", + "nameVariants": "series", + "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": "11xx1x11x1x1x111", + "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:xx11x111-1x11-1111-11x1-x1x1xxxxx1x1#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": "11xx1x11x1x1x111", + "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:xx11x111-1x11-1111-11x1-x1x1xxxxx1x1#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", + "nameVariants": "series", + "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": "11xx1x11x1x1x111", + "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:xx11x111-1x11-1111-11x1-x1x1xxxxx1x1#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": "11xx1x11x1x1x111", + "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:xx11x111-1x11-1111-11x1-x1x1xxxxx1x1#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", + "nameVariants": "series", + "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": "11xx1x11x1x1x111", + "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_571/commands.json b/test_data/ref_571/commands.json new file mode 100644 index 0000000..eca6242 --- /dev/null +++ b/test_data/ref_571/commands.json @@ -0,0 +1,579 @@ +{ + "applianceModel": { + "id": 571, + "name": "HFW7819EWMP", + "code": "X11X11X1111", + "applianceTypeId": 14, + "applianceTypeName": "REF", + "brand": "haier", + "connectivity": "wifi|ble", + "attributes": [ + { + "id": 16016, + "parName": "lowerBarrierDate", + "parValue": "2101", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16017, + "parName": "series", + "parValue": "multidoor", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16018, + "parName": "seriesVersion", + "parValue": "fd83Series7", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16019, + "parName": "installationType", + "parValue": "fs", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16020, + "parName": "vtZone", + "parValue": "1", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16021, + "parName": "doorNumber", + "parValue": "4", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16022, + "parName": "sensor", + "parValue": "doorAlarmFridge", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16023, + "parName": "option", + "parValue": "autoSet|superFreeze|holiday|cheese|zeroFresh|fruitAndVeg", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16024, + "parName": "technology", + "parValue": "st", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 16025, + "parName": "interfaceType", + "parValue": "series|seriesVersion|installationType|doorNumber", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 19266, + "parName": "enrollmentType", + "parValue": "app", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 28037, + "parName": "zones", + "parValue": "fridge|freezer|vtRoom1", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 38227, + "parName": "serviceability", + "parValue": "none", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 61607, + "parName": "fwLabel", + "parValue": "iotfw_epp", + "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" + } + }, + "ancillaryParameters": { + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "tempSelZ1": { + "@quickModeZ2": { + "1": { + "typology": "fixed", + "fixedValue": "@tempSelZ1" + } + }, + "@intelligenceMode": { + "1": { + "typology": "fixed", + "fixedValue": "5" + } + }, + "@holidayMode": { + "1": { + "typology": "fixed", + "fixedValue": "17" + } + } + }, + "tempSelZ2": { + "@quickModeZ2": { + "1": { + "typology": "fixed", + "fixedValue": "-24" + } + }, + "@intelligenceMode": { + "1": { + "typology": "fixed", + "fixedValue": "-18" + } + }, + "@holidayMode": { + "1": { + "typology": "fixed", + "fixedValue": "@tempSelZ2" + } + } + } + } + } + } + } + }, + "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" + }, + "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": { + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "dashboard" + ], + "defaultValue": "[dashboard]" + }, + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "tempSelZ1": { + "intelligenceMode": { + "1": { + "typology": "fixed", + "fixedValue": "5" + } + } + }, + "tempSelZ2": { + "intelligenceMode": { + "1": { + "typology": "fixed", + "fixedValue": "-18" + } + } + } + } + }, + "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]" + }, + "nameVariants": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "series" + } + } + }, + "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]" + }, + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "tempSelZ1": { + "quickModeZ2": { + "1": { + "typology": "fixed", + "fixedValue": "@tempSelZ1" + } + } + }, + "tempSelZ2": { + "quickModeZ2": { + "1": { + "typology": "fixed", + "fixedValue": "-24" + } + } + } + } + }, + "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]" + }, + "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" + } + } + } + } + }, + "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.CHEESE": { + "description": "The command allows to start a program", + "protocolType": "MQTT", + "parameters": { + "tempSelZ3": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "4" + } + }, + "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": [ + "vtRoom1" + ], + "defaultValue": "[vtRoom1]" + } + } + }, + "PROGRAMS.REF.ZERO_FRESH": { + "description": "The command allows to start a program", + "protocolType": "MQTT", + "parameters": { + "tempSelZ3": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + } + }, + "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": [ + "vtRoom1" + ], + "defaultValue": "[vtRoom1]" + } + } + }, + "PROGRAMS.REF.FRUIT_AND_VEG": { + "description": "The command allows to start a program", + "protocolType": "MQTT", + "parameters": { + "tempSelZ3": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "5" + } + }, + "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": [ + "vtRoom1" + ], + "defaultValue": "[vtRoom1]" + } + } + } + }, + "options": {}, + "dictionaryId": 209 +} \ No newline at end of file diff --git a/test_data/ref_571/maintenance.json b/test_data/ref_571/maintenance.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test_data/ref_571/maintenance.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test_data/ref_571/statistics.json b/test_data/ref_571/statistics.json new file mode 100644 index 0000000..cb33c6a --- /dev/null +++ b/test_data/ref_571/statistics.json @@ -0,0 +1,10 @@ +{ + "mostUsedPrograms": [ + { + "count": 9, + "prCode": null + } + ], + "mostUsedRecipes": [], + "programsCounter": 0 +} \ No newline at end of file