From e8adf201d31be44b9906b514af8d235757880441 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sat, 1 Jul 2023 12:29:19 +0200 Subject: [PATCH] Add more devices --- test_data/ac_342/appliance_data.json | 97 + test_data/ac_342/attributes.json | 467 ++++ test_data/ac_342/command_history.json | 371 +++ test_data/ac_342/commands.json | 3173 +++++++++++++++++++++++++ test_data/ac_342/maintenance.json | 1 + test_data/ac_342/statistics.json | 16 + test_data/ap_137/appliance_data.json | 97 + test_data/ap_137/attributes.json | 148 ++ test_data/ap_137/command_history.json | 1 + test_data/ap_137/commands.json | 285 +++ test_data/ap_137/maintenance.json | 1 + test_data/ap_137/statistics.json | 5 + 12 files changed, 4662 insertions(+) create mode 100644 test_data/ac_342/appliance_data.json create mode 100644 test_data/ac_342/attributes.json create mode 100644 test_data/ac_342/command_history.json create mode 100644 test_data/ac_342/commands.json create mode 100644 test_data/ac_342/maintenance.json create mode 100644 test_data/ac_342/statistics.json create mode 100644 test_data/ap_137/appliance_data.json create mode 100644 test_data/ap_137/attributes.json create mode 100644 test_data/ap_137/command_history.json create mode 100644 test_data/ap_137/commands.json create mode 100644 test_data/ap_137/maintenance.json create mode 100644 test_data/ap_137/statistics.json diff --git a/test_data/ac_342/appliance_data.json b/test_data/ac_342/appliance_data.json new file mode 100644 index 0000000..42902dc --- /dev/null +++ b/test_data/ac_342/appliance_data.json @@ -0,0 +1,97 @@ +{ + "id": 342, + "code": "XXXX11X1111", + "applianceTypeId": 11, + "applianceTypeName": "AC", + "brand": "haier", + "connectivity": "wifi|ble", + "modelName": "AS35TAMHRA-C", + "series": "tundra", + "purchaseDate": "1970-01-01T00:00:00.0Z", + "fwVersion": "5.12.0", + "unitConfiguration": "1to1", + "firstEnrollment": true, + "attributes": [ + { + "id": 8845, + "parName": "lowerBarrierDate", + "parValue": "2001", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 8846, + "parName": "type", + "parValue": "rac", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 8847, + "parName": "series", + "parValue": "tundra", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 8848, + "parName": "seriesVersion", + "parValue": "tideGreen", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 8849, + "parName": "installationType", + "parValue": "1to1", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 8850, + "parName": "interfaceType", + "parValue": "type|series|seriesVersion|option|windType|installationType", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 10681, + "parName": "windType", + "parValue": "vertical", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 38013, + "parName": "serviceability", + "parValue": "none", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 61344, + "parName": "fwLabel", + "parValue": "iotfw_epp", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + } + ], + "applianceModelId": 342, + "firstEnrollmentTBC": true, + "SK": "xxx#xx-xx-xx-xx-xx-xx", + "macAddress": "xx-xx-xx-xx-xx-xx", + "eepromName": "no_eeprom", + "applianceId": "xx-xx-xx-xx-xx-xx#1970-01-01T00:00:00.0Z", + "serialNumber": "XXXX11X1111X1XXX1111", + "nickName": "Xxxxxxx 1 XX", + "enrollmentDate": "1970-01-01T00:00:00.0Z", + "lastUpdate": "1970-01-01T00:00:00.0Z", + "eepromId": 41, + "applianceStatus": 1, + "coords": { + "lng": 11.1111111, + "lat": 11.1111111 + }, + "PK": "xxxx#xx-xxxx-1:1111x1xx-111x-11x1-x111-1xx1x1xxxx11", + "SK_Secondary": "XX#xxxxXxxxx11#1111-11-11" +} \ No newline at end of file diff --git a/test_data/ac_342/attributes.json b/test_data/ac_342/attributes.json new file mode 100644 index 0000000..7589f87 --- /dev/null +++ b/test_data/ac_342/attributes.json @@ -0,0 +1,467 @@ +{ + "resultCode": "0", + "shadow": { + "parameters": { + "voiceStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempCoilerIndoor": { + "parNewVal": "11.00", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempSel": { + "parNewVal": "22.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": "58", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "debugEnabled": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "co2ValueIndoor": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempInAirOutdoor": { + "parNewVal": "-64", + "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": "45", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempIndoor": { + "parNewVal": "24.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": "88", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "windDirectionVertical": { + "parNewVal": "5", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "muteStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "onOffStatus": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "lockStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "highTransRate": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "ch2oCleaningStatus": { + "parNewVal": "0", + "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": "35", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "pm2p5LevelIndoor": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "heatAccumulationStatus": { + "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": "-64", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "operationSource": { + "parNewVal": "3", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "pm2p5ValueOutdoor": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "statusSyncRate": { + "parNewVal": "1440", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "lightStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "electricHeatingStatusIndoor": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "tempOutdoor": { + "parNewVal": "32.00", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "pm2p5CleaningStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "voiceSignStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "selfCleaning56Status": { + "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" + }, + "echoStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "windSpeed": { + "parNewVal": "5", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "errCode": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "specialMode": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "windSensingStatus": { + "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": "1", + "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": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "rapidMode": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + } + } + }, + "activity": { + "resultCode": "0", + "activityStarted": "1970-01-01T00:00:00.0Z", + "category": "CYCLE", + "ttl": 1695975374, + "macAddress": "xx-xx-xx-xx-xx-xx", + "activityExecutionStarted": "2023-07-01 08:16:13", + "attributes": { + "machMode": "1", + "10degreeHeatingStatus": "0", + "ch2oCleaningStatus": "0", + "echoStatus": "0", + "electricHeatingStatus": "0", + "energySavePeriod": "15", + "energySavingStatus": "0", + "freshAirStatus": "0", + "halfDegreeSettingStatus": "0", + "healthMode": "0", + "heatAccumulationStatus": "0", + "humanSensingStatus": "0", + "humidificationStatus": "0", + "humiditySel": "30", + "intelligenceStatus": "0", + "lightStatus": "0", + "lockStatus": "0", + "muteStatus": "0", + "pm2p5CleaningStatus": "0", + "pmvStatus": "0", + "rapidMode": "0", + "screenDisplayStatus": "1", + "selfCleaning56Status": "0", + "selfCleaningStatus": "0", + "silentSleepStatus": "0", + "specialMode": "0", + "tempSel": "24", + "tempUnit": "0", + "windDirectionHorizontal": "0", + "windDirectionVertical": "5", + "windSpeed": "5", + "cleaningTimeStatus": "0", + "filterChangeStatusCloud": "0", + "tempCoilerIndoor": "26.00", + "voiceStatus": "0", + "tempAirOutdoor": "56", + "co2ValueIndoor": "0", + "tempInAirOutdoor": "-64", + "pm2p5ValueIndoor": "0", + "fanStatusOutdoor": "2", + "airQuality": "0", + "humidityIndoor": "0", + "vocValueIndoor": "0", + "defrostStatus": "0", + "compressorFrequency": "0", + "tempIndoor": "28.00", + "fourWayValveStatus": "2", + "expansionValveOpenDegree": "88", + "errAckFlag": "0", + "power": "0", + "ch2oValueIndoor": "0", + "machineModeHK": "0", + "acType": "0", + "tempCoilerOutdoor": "29", + "pm2p5LevelIndoor": "0", + "sensingResult": "0", + "tempDefrostOutdoor": "-64", + "operationSource": "3", + "pm2p5ValueOutdoor": "0", + "electricHeatingStatusIndoor": "0", + "tempOutdoor": "34.00", + "voiceSignStatus": "0", + "compressorCurrent": "51.10", + "windSensingStatus": "0", + "compressorStatus": "0", + "fanStatusIndoor": "0", + "appVersion": "2.0.10", + "osVersion": "31", + "deviceModel": "exynos9820", + "mobileOs": "android", + "channel": "mobileApp", + "origin": "standardProgram", + "principalUserId": "0016800000ETo7bAAD" + }, + "applianceTypeName": "AC" + }, + "commandHistory": { + "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": "11xx111111x1111x", + "mobileOs": "android" + }, + "parameters": { + "specialMode": "0", + "cleaningTimeStatus": "0", + "heatAccumulationStatus": "0", + "echoStatus": "0", + "healthMode": "0", + "tempSel": "22", + "humidificationStatus": "0", + "tempUnit": "0", + "humiditySel": "30", + "pmvStatus": "0", + "screenDisplayStatus": "1", + "windDirectionVertical": "5", + "lightStatus": "0", + "energySavingStatus": "0", + "lockStatus": "0", + "machMode": "1", + "windDirectionHorizontal": "0", + "freshAirStatus": "0", + "pm2p5CleaningStatus": "0", + "windSpeed": "5", + "ch2oCleaningStatus": "0", + "electricHeatingStatus": "0", + "onOffStatus": "1", + "filterChangeStatusCloud": "0", + "energySavePeriod": "15", + "intelligenceStatus": "0", + "halfDegreeSettingStatus": "0", + "rapidMode": "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": 1688027517594 + } +} \ No newline at end of file diff --git a/test_data/ac_342/command_history.json b/test_data/ac_342/command_history.json new file mode 100644 index 0000000..d2acc53 --- /dev/null +++ b/test_data/ac_342/command_history.json @@ -0,0 +1,371 @@ +[ + { + "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:1111x1xx-111x-11x1-x111-1xx1x1xxxx11#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": "11xx111111x1111x", + "mobileOs": "android" + }, + "parameters": { + "specialMode": "0", + "cleaningTimeStatus": "0", + "heatAccumulationStatus": "0", + "echoStatus": "0", + "healthMode": "0", + "tempSel": "22", + "humidificationStatus": "0", + "tempUnit": "0", + "humiditySel": "30", + "pmvStatus": "0", + "screenDisplayStatus": "1", + "windDirectionVertical": "5", + "lightStatus": "0", + "energySavingStatus": "0", + "lockStatus": "0", + "machMode": "1", + "windDirectionHorizontal": "0", + "freshAirStatus": "0", + "pm2p5CleaningStatus": "0", + "windSpeed": "5", + "ch2oCleaningStatus": "0", + "electricHeatingStatus": "0", + "onOffStatus": "1", + "filterChangeStatusCloud": "0", + "energySavePeriod": "15", + "intelligenceStatus": "0", + "halfDegreeSettingStatus": "0", + "rapidMode": "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:1111x1xx-111x-11x1-x111-1xx1x1xxxx11#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": "11x1111xx1x11111", + "mobileOs": "android" + }, + "parameters": { + "specialMode": "0", + "cleaningTimeStatus": "0", + "heatAccumulationStatus": "0", + "echoStatus": "0", + "healthMode": "0", + "tempSel": "24", + "humidificationStatus": "0", + "tempUnit": "0", + "humiditySel": "30", + "pmvStatus": "0", + "screenDisplayStatus": "1", + "windDirectionVertical": "5", + "lightStatus": "0", + "energySavingStatus": "0", + "lockStatus": "0", + "machMode": "0", + "windDirectionHorizontal": "0", + "freshAirStatus": "0", + "pm2p5CleaningStatus": "0", + "windSpeed": "5", + "ch2oCleaningStatus": "0", + "electricHeatingStatus": "0", + "onOffStatus": "1", + "filterChangeStatusCloud": "0", + "energySavePeriod": "15", + "intelligenceStatus": "0", + "halfDegreeSettingStatus": "0", + "rapidMode": "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:1111x1xx-111x-11x1-x111-1xx1x1xxxx11#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": "11x1111xx1x11111", + "mobileOs": "android" + }, + "parameters": { + "specialMode": "0", + "cleaningTimeStatus": "0", + "heatAccumulationStatus": "0", + "echoStatus": "0", + "healthMode": "0", + "tempSel": "22", + "humidificationStatus": "0", + "tempUnit": "0", + "humiditySel": "30", + "pmvStatus": "0", + "screenDisplayStatus": "1", + "windDirectionVertical": "5", + "lightStatus": "0", + "energySavingStatus": "0", + "lockStatus": "0", + "machMode": "1", + "windDirectionHorizontal": "0", + "freshAirStatus": "0", + "pm2p5CleaningStatus": "0", + "windSpeed": "5", + "ch2oCleaningStatus": "0", + "electricHeatingStatus": "0", + "onOffStatus": "1", + "filterChangeStatusCloud": "0", + "energySavePeriod": "15", + "intelligenceStatus": "0", + "halfDegreeSettingStatus": "0", + "rapidMode": "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:1111x1xx-111x-11x1-x111-1xx1x1xxxx11#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": "x111xx1x111111x1", + "mobileOs": "android" + }, + "parameters": { + "specialMode": "0", + "cleaningTimeStatus": "0", + "heatAccumulationStatus": "0", + "echoStatus": "0", + "healthMode": "0", + "tempSel": "22", + "humidificationStatus": "0", + "tempUnit": "0", + "humiditySel": "30", + "pmvStatus": "0", + "screenDisplayStatus": "1", + "windDirectionVertical": "5", + "lightStatus": "0", + "energySavingStatus": "0", + "lockStatus": "0", + "machMode": "4", + "windDirectionHorizontal": "0", + "freshAirStatus": "0", + "pm2p5CleaningStatus": "0", + "windSpeed": "5", + "ch2oCleaningStatus": "0", + "electricHeatingStatus": "0", + "onOffStatus": "1", + "filterChangeStatusCloud": "0", + "energySavePeriod": "15", + "intelligenceStatus": "0", + "halfDegreeSettingStatus": "0", + "rapidMode": "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:1111x1xx-111x-11x1-x111-1xx1x1xxxx11#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": "x111xx1x111111x1", + "mobileOs": "android" + }, + "parameters": { + "specialMode": "0", + "cleaningTimeStatus": "0", + "heatAccumulationStatus": "0", + "echoStatus": "0", + "healthMode": "0", + "tempSel": "22", + "humidificationStatus": "0", + "tempUnit": "0", + "humiditySel": "30", + "pmvStatus": "0", + "screenDisplayStatus": "1", + "windDirectionVertical": "5", + "lightStatus": "0", + "energySavingStatus": "0", + "lockStatus": "0", + "machMode": "1", + "windDirectionHorizontal": "0", + "freshAirStatus": "0", + "pm2p5CleaningStatus": "0", + "windSpeed": "5", + "ch2oCleaningStatus": "0", + "electricHeatingStatus": "0", + "onOffStatus": "1", + "filterChangeStatusCloud": "0", + "energySavePeriod": "15", + "intelligenceStatus": "0", + "halfDegreeSettingStatus": "0", + "rapidMode": "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_342/commands.json b/test_data/ac_342/commands.json new file mode 100644 index 0000000..1182c82 --- /dev/null +++ b/test_data/ac_342/commands.json @@ -0,0 +1,3173 @@ +{ + "applianceModel": { + "id": 342, + "name": "AS35TAMHRA-C", + "code": "XXXX11X1111", + "applianceTypeId": 11, + "applianceTypeName": "AC", + "brand": "haier", + "connectivity": "wifi|ble", + "attributes": [ + { + "id": 8845, + "parName": "lowerBarrierDate", + "parValue": "2001", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 8846, + "parName": "type", + "parValue": "rac", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 8847, + "parName": "series", + "parValue": "tundra", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 8848, + "parName": "seriesVersion", + "parValue": "tideGreen", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 8849, + "parName": "installationType", + "parValue": "1to1", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 8850, + "parName": "interfaceType", + "parValue": "type|series|seriesVersion|option|windType|installationType", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 10681, + "parName": "windType", + "parValue": "vertical", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 38013, + "parName": "serviceability", + "parValue": "none", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 61344, + "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": { + "1to2": { + "typology": "fixed", + "fixedValue": "0" + }, + "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": { + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "0" + }, + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "selfCleaningStatus": { + "$installationType": { + "1to2": { + "typology": "fixed", + "fixedValue": "0" + }, + "1toN": { + "typology": "fixed", + "fixedValue": "0" + } + } + }, + "selfCleaning56Status": { + "$installationType": { + "1to1": { + "typology": "fixed", + "fixedValue": "0" + }, + "1to2": { + "typology": "fixed", + "fixedValue": "0" + }, + "1toN": { + "typology": "fixed", + "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": { + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "standard" + ], + "defaultValue": "[standard]" + }, + "ecoMode": { + "category": "general", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "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" + } + } + } + } + } + } + } + } + }, + "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": { + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "standard" + ], + "defaultValue": "[standard]" + }, + "ecoMode": { + "category": "general", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "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" + } + } + } + } + } + } + } + } + }, + "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": { + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "standard" + ], + "defaultValue": "[standard]" + } + } + }, + "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": { + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "standard" + ], + "defaultValue": "[standard]" + } + } + }, + "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": { + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "standard" + ], + "defaultValue": "[standard]" + } + } + }, + "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": { + "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" + }, + "programRules": { + "category": "rule", + "typology": "fixed", + "mandatory": 0, + "fixedValue": { + "remoteVisible": { + "$installationType": { + "1to2": { + "typology": "fixed", + "fixedValue": "0" + }, + "1toN": { + "typology": "fixed", + "fixedValue": "0" + } + } + }, + "remoteActionable": { + "$installationType": { + "1to2": { + "typology": "fixed", + "fixedValue": "0" + }, + "1toN": { + "typology": "fixed", + "fixedValue": "0" + } + } + } + } + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "maintenance", + "health" + ], + "defaultValue": "[maintenance|health]" + } + } + }, + "PROGRAMS.AC.IOT_10_HEATING": { + "description": "The command allows to start a program", + "protocolType": "MQTT", + "parameters": { + "operationName": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "grSetDAC" + }, + "onOffStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "screenDisplayStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "1", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "echoStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "tempSel": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "22", + "minimumValue": "16", + "maximumValue": "30", + "incrementValue": "1" + }, + "machMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "4" + }, + "10degreeHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "silentSleepStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "muteStatus": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "rapidMode": { + "category": "command", + "typology": "range", + "mandatory": 1, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "healthMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humanSensingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "selfCleaning56Status": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "selfCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "cleaningTimeStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "filterChangeStatusCloud": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "specialMode": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "energySavePeriod": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "15" + }, + "heatAccumulationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "tempUnit": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "pmvStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "intelligenceStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "halfDegreeSettingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lockStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "electricHeatingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humiditySel": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "30" + }, + "windSensingStatus": { + "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" + }, + "energySavingStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "lightStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "ch2oCleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "pm2p5CleaningStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "humidificationStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "freshAirStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + }, + "windSpeed": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 1, + 2, + 3, + 5 + ] + }, + "windDirectionVertical": { + "category": "command", + "typology": "enum", + "mandatory": 1, + "defaultValue": "5", + "enumValues": [ + 2, + 4, + 5, + 6, + 7, + 8 + ] + }, + "windDirectionHorizontal": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + } + }, + "ancillaryParameters": { + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "programFamily": { + "category": "cluster", + "typology": "enum", + "mandatory": 1, + "enumValues": [ + "standard" + ], + "defaultValue": "[standard]" + } + } + } + }, + "options": {}, + "dictionaryId": 183 +} \ No newline at end of file diff --git a/test_data/ac_342/maintenance.json b/test_data/ac_342/maintenance.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test_data/ac_342/maintenance.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test_data/ac_342/statistics.json b/test_data/ac_342/statistics.json new file mode 100644 index 0000000..4c266bb --- /dev/null +++ b/test_data/ac_342/statistics.json @@ -0,0 +1,16 @@ +{ + "mostUsedPrograms": [ + { + "count": 260, + "programName": "PROGRAMS.AC.HOME_ASSISTANT", + "prCode": null + }, + { + "count": 3, + "programName": "PROGRAMS.AC.IOT_COOL", + "prCode": null + } + ], + "mostUsedRecipes": [], + "programsCounter": 0 +} \ No newline at end of file diff --git a/test_data/ap_137/appliance_data.json b/test_data/ap_137/appliance_data.json new file mode 100644 index 0000000..34db27b --- /dev/null +++ b/test_data/ap_137/appliance_data.json @@ -0,0 +1,97 @@ +{ + "id": 137, + "code": "11111111", + "applianceTypeId": 7, + "applianceTypeName": "AP", + "brand": "hoover", + "connectivity": "wifi|ble", + "modelName": "HHP50CA001", + "series": "h-purifier500", + "purchaseDate": "1970-01-01T00:00:00.0Z", + "fwVersion": "1.4.0", + "firstEnrollment": true, + "attributes": [ + { + "id": 1187, + "parName": "lowerBarrierDate", + "parValue": "2001", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 1188, + "parName": "series", + "parValue": "h-purifier500", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 7855, + "parName": "option", + "parValue": "aromaDiffuser", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 7856, + "parName": "display", + "parValue": "advanced", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 7857, + "parName": "waterTank", + "parValue": "no", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 7858, + "parName": "interfaceType", + "parValue": "series|display|option", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 15270, + "parName": "habitat", + "parValue": "2/3", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37812, + "parName": "serviceability", + "parValue": "none", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 61353, + "parName": "fwLabel", + "parValue": "iotfw_ap", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + } + ], + "defaultWarrantyYears": 1, + "applianceModelId": 137, + "firstEnrollmentTBC": true, + "SK": "xxx#xx-xx-xx-xx-xx-xx", + "macAddress": "xx-xx-xx-xx-xx-xx", + "eepromName": "no_eeprom", + "applianceId": "xx-xx-xx-xx-xx-xx#1970-01-01T00:00:00.0Z", + "serialNumber": "1111111111111111", + "nickName": "Xxx xxxxxxxx", + "enrollmentDate": "1970-01-01T00:00:00.0Z", + "lastUpdate": "1970-01-01T00:00:00.0Z", + "eepromId": 41, + "applianceStatus": 1, + "coords": { + "lng": -1.1111111111111111, + "lat": 11.111111111111111 + }, + "PK": "xxxx#xx-xxxx-1:11x1x111-1xx1-1111-1111-11x1xxxxx1x1", + "SK_Secondary": "XX#xxxxxx#1111-11-11" +} \ No newline at end of file diff --git a/test_data/ap_137/attributes.json b/test_data/ap_137/attributes.json new file mode 100644 index 0000000..ffa5737 --- /dev/null +++ b/test_data/ap_137/attributes.json @@ -0,0 +1,148 @@ +{ + "resultCode": "0", + "shadow": { + "parameters": { + "totalWorkTime": { + "parNewVal": "8090", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "pollenLevel": { + "parNewVal": "2", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "pm2p5ValueIndoor": { + "parNewVal": "2", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "stdTransRate": { + "parNewVal": "3600", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "aromaTimeOff": { + "parNewVal": "10", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "airQuality": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "temp": { + "parNewVal": "24", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "lightStatus": { + "parNewVal": "2", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "machMode": { + "parNewVal": "2", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "humidityIndoor": { + "parNewVal": "59.0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "aromaTimeOn": { + "parNewVal": "60", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "aromaPreferredSetting": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "vocValueIndoor": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "errors": { + "parNewVal": "00", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "preFilterStatus": { + "parNewVal": "0.0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "coLevel": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "ecoModeStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "aromaStatus": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "onOffStatus": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "pm10ValueIndoor": { + "parNewVal": "3", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "lockStatus": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "windSpeed": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "highTransRate": { + "parNewVal": "5", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "touchToneStatus": { + "parNewVal": "1", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "transMode": { + "parNewVal": "0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + "mainFilterStatus": { + "parNewVal": "0.0", + "lastUpdate": "1970-01-01T00:00:00.0Z" + } + } + }, + "activity": { + "resultCode": "0", + "activityStarted": "1970-01-01T00:00:00.0Z", + "category": "CYCLE", + "ttl": 1695494877, + "macAddress": "xx-xx-xx-xx-xx-xx", + "activityExecutionStarted": "2023-06-25 18:47:55", + "attributes": { + "machMode": "2", + "pollenLevel": "1", + "pm2p5ValueIndoor": "0", + "aromaTimeOff": "120", + "airQuality": "0", + "temp": "0", + "lightStatus": "2", + "humidityIndoor": "0.0", + "aromaTimeOn": "90", + "vocValueIndoor": "1", + "preFilterStatus": "10.0", + "ecoModeStatus": "0", + "aromaStatus": "0", + "pm10ValueIndoor": "0", + "lockStatus": "0", + "windSpeed": "2", + "touchToneStatus": "1", + "mainFilterStatus": "1.0", + "origin": "dashboard", + "channel": "appliance" + }, + "applianceTypeName": "AP" + }, + "lastConnEvent": { + "macAddress": "xx-xx-xx-xx-xx-xx", + "category": "CONNECTED", + "instantTime": "1970-01-01T00:00:00.0Z", + "timestampEvent": 1688165533882 + } +} \ No newline at end of file diff --git a/test_data/ap_137/command_history.json b/test_data/ap_137/command_history.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/test_data/ap_137/command_history.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/test_data/ap_137/commands.json b/test_data/ap_137/commands.json new file mode 100644 index 0000000..a25860c --- /dev/null +++ b/test_data/ap_137/commands.json @@ -0,0 +1,285 @@ +{ + "applianceModel": { + "id": 137, + "name": "HHP50CA001", + "code": "11111111", + "applianceTypeId": 7, + "applianceTypeName": "AP", + "brand": "hoover", + "connectivity": "wifi|ble", + "attributes": [ + { + "id": 1187, + "parName": "lowerBarrierDate", + "parValue": "2001", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 1188, + "parName": "series", + "parValue": "h-purifier500", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 7855, + "parName": "option", + "parValue": "aromaDiffuser", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 7856, + "parName": "display", + "parValue": "advanced", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 7857, + "parName": "waterTank", + "parValue": "no", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 7858, + "parName": "interfaceType", + "parValue": "series|display|option", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 15270, + "parName": "habitat", + "parValue": "2/3", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 37812, + "parName": "serviceability", + "parValue": "none", + "status": 1, + "lastUpdate": "1970-01-01T00:00:00.0Z" + }, + { + "id": 61353, + "parName": "fwLabel", + "parValue": "iotfw_ap", + "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": { + "machMode": { + "category": "command", + "typology": "enum", + "mandatory": 0, + "defaultValue": "2", + "enumValues": [ + 1, + 2, + 4 + ] + }, + "aromaStatus": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "4", + "incrementValue": "1" + }, + "aromaPreferredSetting": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "1", + "minimumValue": "1", + "maximumValue": "4", + "incrementValue": "1" + }, + "aromaTimeOn": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "60", + "minimumValue": "1", + "maximumValue": "86400", + "incrementValue": "1" + }, + "aromaTimeOff": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "60", + "minimumValue": "1", + "maximumValue": "86400", + "incrementValue": "1" + }, + "pollenLevel": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "2", + "incrementValue": "1" + }, + "lockStatus": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "lightStatus": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "2", + "incrementValue": "1" + }, + "touchToneStatus": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "1", + "incrementValue": "1" + }, + "preFilterStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "0" + }, + "mainFilterStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "0" + }, + "stdTransRate": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "3600", + "minimumValue": "1", + "maximumValue": "86400", + "incrementValue": "1" + }, + "highTransRate": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "5", + "minimumValue": "1", + "maximumValue": "86400", + "incrementValue": "1" + } + } + }, + "setConfig": { + "description": "The message allows to set platform parameters", + "protocolType": "MQTT", + "parameters": { + "httpEndpoint": { + "category": "command", + "typology": "fixed", + "mandatory": 0 + }, + "mqttEndpoint": { + "category": "command", + "typology": "fixed", + "mandatory": 0 + } + } + } + }, + "stopProgram": { + "description": "The message allows to stop the program", + "protocolType": "MQTT", + "parameters": { + "onOffStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "0" + } + } + }, + "startProgram": { + "PROGRAMS.AP.undefined": { + "description": "The command allows to start a program", + "protocolType": "MQTT", + "parameters": { + "onOffStatus": { + "category": "command", + "typology": "fixed", + "mandatory": 1, + "fixedValue": "1" + }, + "machMode": { + "category": "command", + "typology": "enum", + "mandatory": 0, + "defaultValue": "2", + "enumValues": [ + 1, + 2, + 4 + ] + }, + "aromaStatus": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "4", + "incrementValue": "1" + }, + "lightStatus": { + "category": "command", + "typology": "range", + "mandatory": 0, + "defaultValue": "0", + "minimumValue": "0", + "maximumValue": "2", + "incrementValue": "1" + } + }, + "ancillaryParameters": { + "remoteActionable": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + }, + "remoteVisible": { + "category": "general", + "typology": "fixed", + "mandatory": 0, + "fixedValue": "1" + } + } + } + }, + "options": {}, + "dictionaryId": 74 +} \ No newline at end of file diff --git a/test_data/ap_137/maintenance.json b/test_data/ap_137/maintenance.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/test_data/ap_137/maintenance.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test_data/ap_137/statistics.json b/test_data/ap_137/statistics.json new file mode 100644 index 0000000..4321dd9 --- /dev/null +++ b/test_data/ap_137/statistics.json @@ -0,0 +1,5 @@ +{ + "mostUsedPrograms": [], + "mostUsedRecipes": [], + "programsCounter": 0 +} \ No newline at end of file