WT303/WT304 – Available Services

This topic provides IDs of services that can be invoked on WT303/WT304.

Usage

Workflow
  1. Copy the snippet of the desired service.
  2. If input parameters are required, fill in the values and remove the comments.
  3. 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

Query Device Status
{
    "serviceId": "query_device_status",
    "inputs": {}
}
Time Synchronize
{
    "serviceId": "synchronize_time",
    "inputs": {}
}
Rejoin the Network
{
    "serviceId": "reconnect",
    "inputs": {}
}
External Temperature Settings
{
    "serviceId": "send_temperature",
    "inputs": {
        "temperature": 0 // External Temperature Value Type: float Unit: ℃
    }
}
External Humidity Settings
{
    "serviceId": "send_humidity",
    "inputs": {
        "humidity": 0 // External Humidity Value Type: float Unit: %RH
    }
}
Open Window Status Control
{
    "serviceId": "update_open_windows_state",
    "inputs": {
        "type": "0" // Open Window Status Control Type: enum Enum: 0-Normal 1-Open
    }
}
Execute Schedule
{
    "serviceId": "insert_schedule",
    "inputs": {
        "type": "0" // Event Control Type: enum Enum: 0-Schedule1 1-Schedule2 2-Schedule3 3-Schedule4 4-Schedule5 5-Schedule6 6-Schedule7 7-Schedule8
    }
}
Delete Schedule
{
    "serviceId": "delete_schedule",
    "inputs": {
        "type": "255" // Delete Schedule Type: enum Enum: 0-Schedule1 1-Schedule2 2-Schedule3 3-Schedule4 4-Schedule5 5-Schedule6 6-Schedule7 7-Schedule8 255-Reset All
    }
}
Reboot
{
    "serviceId": "reboot",
    "inputs": {}
}