Open PHolstein1 opened 4 months ago
{ "code": 200, "message": "success", "data": [ { "sku": "H7130", "device": "XX:XX:XX:XX:XX:XX:XX:XX", "deviceName": "Smart Heater", "type": "devices.types.heater", "capabilities": [ { "type": "devices.capabilities.on_off", "instance": "powerSwitch", "parameters": { "dataType": "ENUM", "options": [ { "name": "on", "value": 1 }, { "name": "off", "value": 0 } ] } }, { "type": "devices.capabilities.toggle", "instance": "oscillationToggle", "parameters": { "dataType": "ENUM", "options": [ { "name": "on", "value": 1 }, { "name": "off", "value": 0 } ] } }, { "type": "devices.capabilities.toggle", "instance": "thermostatToggle", "parameters": { "dataType": "ENUM", "options": [ { "name": "on", "value": 1 }, { "name": "off", "value": 0 } ] } }, { "type": "devices.capabilities.temperature_setting", "instance": "targetTemperature", "parameters": { "dataType": "STRUCT", "fields": [ { "fieldName": "autoStop", "defaultValue": 0, "dataType": "ENUM", "options": [ { "name": "Auto Stop", "value": 1 }, { "name": "Maintain", "value": 0 } ], "required": false }, { "fieldName": "temperature", "dataType": "INTEGER", "range": { "min": 5, "max": 30, "precision": 1 }, "required": true }, { "fieldName": "unit", "defaultValue": "Celsius", "dataType": "ENUM", "options": [ { "name": "Celsius", "value": "Celsius" }, { "name": "Fahrenheit", "value": "Fahrenheit" } ], "required": false } ] } }, { "type": "devices.capabilities.property", "instance": "sensorTemperature" }, { "type": "devices.capabilities.work_mode", "instance": "workMode", "parameters": { "dataType": "STRUCT", "fields": [ { "fieldName": "workMode", "dataType": "ENUM", "options": [ { "name": "Low", "value": 1 }, { "name": "Medium", "value": 2 }, { "name": "High", "value": 3 } ], "required": true }, { "fieldName": "modeValue", "dataType": "ENUM", "options": [ { "defaultValue": 0, "name": "Low" }, { "defaultValue": 0, "name": "Medium" }, { "defaultValue": 0, "name": "High" } ], "required": false } ] } } ] }, { "sku": "H7135", "device": "XX:XX:XX:XX:XX:XX:XX:XX", "deviceName": "Master Bath Heater", "type": "devices.types.heater", "capabilities": [ { "type": "devices.capabilities.on_off", "instance": "powerSwitch", "parameters": { "dataType": "ENUM", "options": [ { "name": "on", "value": 1 }, { "name": "off", "value": 0 } ] } }, { "type": "devices.capabilities.temperature_setting", "instance": "targetTemperature", "parameters": { "dataType": "STRUCT", "fields": [ { "fieldName": "autoStop", "defaultValue": 0, "dataType": "ENUM", "options": [ { "name": "Auto Stop", "value": 1 }, { "name": "Maintain", "value": 0 } ], "required": false }, { "fieldName": "temperature", "dataType": "INTEGER", "range": { "min": 5, "max": 30, "precision": 1 }, "required": true }, { "fieldName": "unit", "defaultValue": "Celsius", "dataType": "ENUM", "options": [ { "name": "Celsius", "value": "Celsius" }, { "name": "Fahrenheit", "value": "Fahrenheit" } ], "required": true } ] } }, { "type": "devices.capabilities.property", "instance": "sensorTemperature" }, { "type": "devices.capabilities.work_mode", "instance": "workMode", "parameters": { "dataType": "STRUCT", "fields": [ { "fieldName": "workMode", "dataType": "ENUM", "options": [ { "name": "gearMode", "value": 1 }, { "name": "Fan", "value": 9 }, { "name": "Auto", "value": 3 } ], "required": true }, { "fieldName": "modeValue", "dataType": "ENUM", "options": [ { "name": "gearMode", "options": [ { "name": "Low", "value": 1 }, { "name": "Medium", "value": 2 }, { "name": "High", "value": 3 } ] } ], "required": false } ] } } ] } ] }
{ "code": 200, "message": "success", "data": [ { "sku": "H7130", "device": "XX:XX:XX:XX:XX:XX:XX:XX", "deviceName": "Smart Heater", "type": "devices.types.heater", "capabilities": [ { "type": "devices.capabilities.on_off", "instance": "powerSwitch", "parameters": { "dataType": "ENUM", "options": [ { "name": "on", "value": 1 }, { "name": "off", "value": 0 } ] } }, { "type": "devices.capabilities.toggle", "instance": "oscillationToggle", "parameters": { "dataType": "ENUM", "options": [ { "name": "on", "value": 1 }, { "name": "off", "value": 0 } ] } }, { "type": "devices.capabilities.toggle", "instance": "thermostatToggle", "parameters": { "dataType": "ENUM", "options": [ { "name": "on", "value": 1 }, { "name": "off", "value": 0 } ] } }, { "type": "devices.capabilities.temperature_setting", "instance": "targetTemperature", "parameters": { "dataType": "STRUCT", "fields": [ { "fieldName": "autoStop", "defaultValue": 0, "dataType": "ENUM", "options": [ { "name": "Auto Stop", "value": 1 }, { "name": "Maintain", "value": 0 } ], "required": false }, { "fieldName": "temperature", "dataType": "INTEGER", "range": { "min": 5, "max": 30, "precision": 1 }, "required": true }, { "fieldName": "unit", "defaultValue": "Celsius", "dataType": "ENUM", "options": [ { "name": "Celsius", "value": "Celsius" }, { "name": "Fahrenheit", "value": "Fahrenheit" } ], "required": false } ] } }, { "type": "devices.capabilities.property", "instance": "sensorTemperature" }, { "type": "devices.capabilities.work_mode", "instance": "workMode", "parameters": { "dataType": "STRUCT", "fields": [ { "fieldName": "workMode", "dataType": "ENUM", "options": [ { "name": "Low", "value": 1 }, { "name": "Medium", "value": 2 }, { "name": "High", "value": 3 } ], "required": true }, { "fieldName": "modeValue", "dataType": "ENUM", "options": [ { "defaultValue": 0, "name": "Low" }, { "defaultValue": 0, "name": "Medium" }, { "defaultValue": 0, "name": "High" } ], "required": false } ] } } ] }, { "sku": "H7135", "device": "XX:XX:XX:XX:XX:XX:XX:XX", "deviceName": "Master Bath Heater", "type": "devices.types.heater", "capabilities": [ { "type": "devices.capabilities.on_off", "instance": "powerSwitch", "parameters": { "dataType": "ENUM", "options": [ { "name": "on", "value": 1 }, { "name": "off", "value": 0 } ] } }, { "type": "devices.capabilities.temperature_setting", "instance": "targetTemperature", "parameters": { "dataType": "STRUCT", "fields": [ { "fieldName": "autoStop", "defaultValue": 0, "dataType": "ENUM", "options": [ { "name": "Auto Stop", "value": 1 }, { "name": "Maintain", "value": 0 } ], "required": false }, { "fieldName": "temperature", "dataType": "INTEGER", "range": { "min": 5, "max": 30, "precision": 1 }, "required": true }, { "fieldName": "unit", "defaultValue": "Celsius", "dataType": "ENUM", "options": [ { "name": "Celsius", "value": "Celsius" }, { "name": "Fahrenheit", "value": "Fahrenheit" } ], "required": true } ] } }, { "type": "devices.capabilities.property", "instance": "sensorTemperature" }, { "type": "devices.capabilities.work_mode", "instance": "workMode", "parameters": { "dataType": "STRUCT", "fields": [ { "fieldName": "workMode", "dataType": "ENUM", "options": [ { "name": "gearMode", "value": 1 }, { "name": "Fan", "value": 9 }, { "name": "Auto", "value": 3 } ], "required": true }, { "fieldName": "modeValue", "dataType": "ENUM", "options": [ { "name": "gearMode", "options": [ { "name": "Low", "value": 1 }, { "name": "Medium", "value": 2 }, { "name": "High", "value": 3 } ] } ], "required": false } ] } } ] } ] }