WT102 – Available Services
This topic provides IDs of services that can be invoked on WT102.
Usage
- Workflow
-
- Copy the snippet of the desired service.
- If input parameters are required, fill in the values and remove the comments.
- Use it as the body parameters of Invoke Device Services Asynchronously .
- Example
-
POST /device/openapi/v1/devices/1737019327786467329/services/call HTTP/1.1 Host: demo.milesight.com Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Inxxxxxxxxxxxxxx Content-Type: application/json { "serviceId": "reboot", "inputs": {} }
Supported services
Service ID
- Rejoin the Network
-
{ "serviceId": "reconnect", "inputs": {} }
- Device Status Query
-
{ "serviceId": "query_device_status", "inputs": {} }
- Time Synchronize
-
{ "serviceId": "synchronize_time", "inputs": {} }
- Clear Historical Data
-
{ "serviceId": "clear_historical_data", "inputs": {} }
- Stop retrieving historical data
-
{ "serviceId": "stop_historical_data_retrieval", "inputs": {} }
- Retrieve historical data for a specific time range
-
{ "serviceId": "retrieve_historical_data_by_time_range", "inputs": { "start_time": "date", // Start Time Type: date "end_time": "date" // End Time Type: date } }
- Retrieve historical data for a specific time
-
{ "serviceId": "retrieve_historical_data_by_time", "inputs": { "time": "date" // Time Point Type: date } }
- Motor Stroke And Position Query
-
{ "serviceId": "query_motor_stroke_position", "inputs": {} }
- Calibrate Motor
-
{ "serviceId": "calibrate_motor", "inputs": {} }
- Target Valve Opening Setting
-
{ "serviceId": "set_target_valve_opening_degree", "inputs": { "value": 0 // Target Valve Opening Type: int Unit: % } }
- Target Temperature Setting
-
{ "serviceId": "set_target_temperature", "inputs": { "value": 0 // Temperature Type: float Unit: ℃ } }
- External Temperature
-
{ "serviceId": "set_temperature", "inputs": { "value": 0 // Temperature Type: float Unit: ℃ } }
- Open Window Status Setting
-
{ "serviceId": "set_opening_window", "inputs": { "state": "0" // Open Window Status Type: enum Enum: 0-Normal 1-Open } }
- Delete Schedule
-
{ "serviceId": "delete_schedule", "inputs": { "type": "255" // Select Schedule Type: enum Enum: 0-Schedule1 1-Schedule2 2-Schedule3 3-Schedule4 4-Schedule5 5-Schedule6 6-Schedule7 7-Schedule8 8-Schedule9 9-Schedule10 10-Schedule11 11-Schedule12 12-Schedule13 13-Schedule14 14-Schedule15 15-Schedule16 255-Reset All } }
- Reboot
-
{ "serviceId": "reboot", "inputs": {} }
- Command Queries
-
{ "serviceId": "request_command_queries", "inputs": { "length": 1, // Command Length Type: int "object_command": "0XDA" // The command that was queried Type: enum Enum: 0XDA-Product Version 0X00-Battery 0X02-Motor Stroke 0X04-Current Valve Opening 0X60-Temperature Unit 0X61-Ambient Temperature Source Setting 0X62-Ambient Temperature Display Enable 0X6300-Heating Date 0X6301-Heating Period Reporting Interval 0X6302-Non-heating Period Reporting Interval 0X6303-Non-heating Period Valve Status 0X6500-Temperature Control Enable 0X6501-Target Temperature Resolution 0X6504-Minimum of Target Temperature Adjustment Range 0X6505-Maximum of Target Temperature Adjustment Range 0X6506-Temperature Control Mode Settings 0X66-Open Window Detection 0X68-Freeze Protection 0X69-Forced Heating Enable 0X6A-Child Lock 0X6B-Effective Stroke 0X6C-Temperature Calibration Settings 0X6D-Temperature Threshold Alarm 0X6E00-Schedule Enable 0X6E01-Schedule Time 0X6E02-Schedule Repeat Day 0X6E03-Schedule Temperature Control Mode 0X6E04-Schedule Target Temperature 0X6E05-Schedule Target Valve Opening 0X6E09-Schedule Reporting Interval 0X6F-Local Modification Report 0XC7-Time Zone 0XC6-Daylight Saving Time 0XC500-Data Storage Enable 0XC501-Data Retransmission Enable 0XC502-Data Retransmission Interval 0XC503-Data Retrieval Interval } }