VS370 – Configurable Properties
You can update a device's settings by modifying the configurable properties of its TSL model via API. This topic provides the configurable parameters for VS370 TSL model, their descriptions, and how to use them.
Usage
- Have an overview of the configurable properties and their default values of VS370 .
- Copy the example code and remove the comments and parameters that do not require modification.
- Edit the desired properties according to the detailed
properties description
.
Note: Make sure that the edited example code complies with the JSON format requirements.
- Use the edited example code as the body parameters of Update Device Properties Incrementally.
Configurable Properties
The following code represents all configurable properties in the VS370 TSL model, along with their default values.
- Click a property to view its detailed description and valid values.
- Configure the example code as needed, then use it as the body parameters of Update Device Properties Incrementally to save time and effort.
{
"version": "v1.0",
"type": "TSL",
"properties": {
"reporting_interval": { // Reporting Interval Settings Type: struct
"time": 1440 // Reporting Interval Type: int Unit: min
},
"pir_pulse_count": "2", // PIR Triggered Count Threshold Type: enum
"pir_window_time": "2", // PIR Collecting Window Time Type: enum
"illumination_settings": { // Illuminance Settings Type: struct
"enable": true, // Illuminance Collecting Enable Type: bool
"upper_limit": 700, // Upper Limit of Illuminance Status Threshold Type: int Unit: lux
"lower_limit": 300 // Lower Limit of Illuminance Status Threshold Type: int Unit: lux
},
"human_exist_active_sensitivity_level": "2", // Trigger Human Sensitivity Type: enum
"human_exist_keep_sensitivity_level": "1", // Maintain Human Sensitivity Type: enum
"ble_enable": true, // Bluetooth Enable Type: bool
"pir_idle_interval": 3, // Time to Report Vacancy Type: int Unit: min
"time_zone": "0", // Time Zone Type: enum Unit: min
"daylight_saving_time_settings": { // Daylight Saving Time Type: struct
"daylight_saving_time_enable": false, // Enable Type: bool
"start_month": "1", // Month Type: enum
"start_week": "1", // Number of Week Type: enum
"start_week_day": "7", // Week Type: enum
"start_hour_min": "0", // Time Type: enum Unit: min
"end_month": "1", // Month Type: enum
"end_week": "1", // Number of Week Type: enum
"end_week_day": "7", // Week Type: enum
"end_hour_min": "0", // Time Type: enum Unit: min
"daylight_saving_time_offset": 60 // DST Bias Type: int Unit: min
},
"d2d_enable": false, // D2D Enable Type: bool
"d2d_key": "5572404c696e6b4c", // D2D Key Type: string
"occupied_d2d_controller_settings": { // Occupied Type: struct
"d2d_controller_occupied_enable": false, // Trigger Enable Type: bool
"d2d_controller_lora_enable": false, // LoRa Uplink Type: bool
"d2d_controller_command": "0000", // Control Command Type: string
"d2d_controller_command_valid_time": 5, // Control Time Type: int Unit: min
"d2d_controller_command_valid_time_enable": false // Enable Control Time Type: bool
},
"idle_d2d_controller_settings": { // Vacant Type: struct
"d2d_controller_idle_enable": false, // Trigger Enable Type: bool
"d2d_controller_lora_enable": false, // LoRa Uplink Type: bool
"d2d_controller_command": "0001", // Control Command Type: string
"d2d_controller_command_valid_time": 5, // Control Time Type: int Unit: min
"d2d_controller_command_valid_time_enable": false // Enable Control Time Type: bool
},
"brightness_d2d_controller_settings": { // Bright Type: struct
"d2d_controller_brightness_enable": false, // Trigger Enable Type: bool
"d2d_controller_lora_enable": false, // LoRa Uplink Type: bool
"d2d_controller_command": "0002", // Control Command Type: string
"d2d_controller_command_valid_time": 5, // Control Time Type: int Unit: min
"d2d_controller_command_valid_time_enable": false // Enable Control Time Type: bool
},
"dusky_d2d_controller_settings": { // Dim Type: struct
"d2d_controller_dusky_enable": false, // Trigger Enable Type: bool
"d2d_controller_lora_enable": false, // LoRa Uplink Type: bool
"d2d_controller_command": "0003", // Control Command Type: string
"d2d_controller_command_valid_time": 5, // Control Time Type: int Unit: min
"d2d_controller_command_valid_time_enable": false // Enable Control Time Type: bool
},
"occupied_brightness_d2d_controller_settings": { // Occupied/Bright Type: struct
"d2d_controller_occupied_brightness_enable": false, // Trigger Enable Type: bool
"d2d_controller_lora_enable": false, // LoRa Uplink Type: bool
"d2d_controller_command": "0004", // Control Command Type: string
"d2d_controller_command_valid_time": 5, // Control Time Type: int Unit: min
"d2d_controller_command_valid_time_enable": false // Enable Control Time Type: bool
},
"occupied_dusky_d2d_controller_settings": { // Occupied/Dim Type: struct
"d2d_controller_occupied_dusky_enable": false, // Trigger Enable Type: bool
"d2d_controller_lora_enable": false, // LoRa Uplink Type: bool
"d2d_controller_command": "0005", // Control Command Type: string
"d2d_controller_command_valid_time": 5, // Control Time Type: int Unit: min
"d2d_controller_command_valid_time_enable": false // Enable Control Time Type: bool
},
"sleep_time_first_group_settings": { // Hibernate Period 1 Type: struct
"first_group_enable": false, // Enable Type: bool
"start_time": "0", // Start Time Type: local_time Unit: min
"end_time": "1" // End Time Type: local_time Unit: min
},
"sleep_time_second_group_settings": { // Hibernate Period 2 Type: struct
"first_group_enable": false, // Enable Type: bool
"start_time": "0", // Start Time Type: local_time Unit: min
"end_time": "1" // End Time Type: local_time Unit: min
}
}
}
Description
The following table provides the description and valid values for the configurable properties of VS370.
Parameter | Type | Description | |
---|---|---|---|
reporting_interval | Struct |
The interval for data reporting. |
|
time | Integer |
Specify the interval for data reporting (Unit: Minute).
|
|
pir_pulse_count | Enum |
Specify the PIR Triggered Count Threshold value. Valid value:
|
|
pir_window_time | Enum |
Specify the PIR Collecting Window Time. Valid value:
|
|
illumination_settings | Struct |
Illuminance Settings. |
|
enable | Boolean |
Decide whether to collect illuminance. Valid value:
|
|
upper_limit | Integer |
Specify the upper Limit. When the value is higher than this limit, the device will regard the status as Bright. ( Unit : lux)
|
|
lower_limit | Integer |
Specify the lower Limit. When the value is lower than this limit, the device will regard the status as Dim. ( Unit : lux)
|
|
human_exist_active_sensitivity_level | Enum |
Adjust the responsiveness of the device to occupancy events. Higher sensitivity leads to quicker triggers but increases the probability of false triggers. Valid value:
|
|
human_exist_keep_sensitivity_level | Enum |
Adjust the sensitivity for maintaining the operational state after detecting presence. Higher sensitivity makes it easier to detect slight movements and maintain the occupied state. Valid value:
|
|
ble_enable | Boolean |
Decide whether to enable Bluetooth to configure the device. Valid value:
|
|
pir_idle_interval | Integer |
Specify the time to report vacant status after being released from the occupied status. ( Unit : minute)
|
|
time_zone | Enum |
Specify the time zone for this device.
|
|
daylight_saving_time_settings | Struct |
Daylight Saving Time settings. |
|
daylight_saving_time_enable | Boolean |
Decide whether to enable Daylight Saving Time. Valid value:
|
|
start_month | Enum |
Specify the start month of Daylight Saving Time. Valid value:
|
|
start_week | Enum |
Specify the start week of Daylight Saving Time. Valid value:
|
|
start_week_day | Enum |
Specify the start week day of Daylight Saving Time. Valid value:
|
|
start_hour_min | Enum |
Specify the start time of Daylight Saving Time (Unit : minute).
|
|
end_month | Enum |
Specify the end month of Daylight Saving Time. Valid value:
|
|
end_week | Enum |
Specify the end week of Daylight Saving Time. Valid value:
|
|
end_week_day | Enum |
Specify the end week day of Daylight Saving Time. Valid value:
|
|
end_hour_min | Enum |
Specify the end time of Daylight Saving Time (Unit : minute).
|
|
daylight_saving_time_offset | Integer |
Specify the bias of Daylight Saving Time (Unit : minute).
|
|
d2d_enable | Boolean |
Decide whether to enable Device-to-Device (D2D) communication for this device. Valid value:
|
|
d2d_key | String |
Note: This setting ONLY takes effect
when d2d_enable is set to
Specify the key for D2D
communication.true .
|
|
occupied_d2d_controller_settings | Struct |
Settings of D2D communication triggered by occupied status. |
|
d2d_controller_occupied_enable | Boolean |
Decide whether to trigger D2D communication when it's detected as occupied status. Valid value:
|
|
d2d_controller_lora_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command. Valid value:
|
|
d2d_controller_command | String |
Specify the control command for D2D communication triggered by occupied status.
|
|
d2d_controller_command_valid_time | Integer |
Specify the control time (Unit: Minute).
|
|
d2d_controller_command_valid_time_enable | Boolean |
Decide whether to enable control time to specify the duration for executing control actions within D2D communication. Valid value:
|
|
idle_d2d_controller_settings | Struct |
Settings of D2D communication triggered by vacant status. |
|
d2d_controller_idle_enable | Boolean |
Decide whether to trigger D2D communication when it's detected as vacant status. Valid value:
|
|
d2d_controller_lora_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command. Valid value:
|
|
d2d_controller_command | String |
Specify the control command for D2D communication triggered by vacant status.
|
|
d2d_controller_command_valid_time | Integer |
Specify the control time (Unit: Minute).
|
|
d2d_controller_command_valid_time_enable | Boolean |
Decide whether to enable control time to specify the duration for executing control actions within D2D communication. Valid value:
|
|
brightness_d2d_controller_settings | Struct |
Settings of D2D communication triggered by bright status. |
|
d2d_controller_brightness_enable | Boolean |
Decide whether to trigger D2D communication when it's detected as bright status. Valid value:
|
|
d2d_controller_lora_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command. Valid value:
|
|
d2d_controller_command | String |
Specify the control command for D2D communication triggered by bright status.
|
|
d2d_controller_command_valid_time | Integer |
Specify the control time (Unit: Minute).
|
|
d2d_controller_command_valid_time_enable | Boolean |
Decide whether to enable control time to specify the duration for executing control actions within D2D communication. Valid value:
|
|
dusky_d2d_controller_settings | Struct |
Settings of D2D communication triggered by dim status. |
|
d2d_controller_dusky_enable | Boolean |
Decide whether to trigger D2D communication when it's detected as dim status. Valid value:
|
|
d2d_controller_lora_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command. Valid value:
|
|
d2d_controller_command | String |
Specify the control command for D2D communication triggered by dim status.
|
|
d2d_controller_command_valid_time | Integer |
Specify the control time (Unit: Minute).
|
|
d2d_controller_command_valid_time_enable | Boolean |
Decide whether to enable control time to specify the duration for executing control actions within D2D communication. Valid value:
|
|
occupied_brightness_d2d_controller_settings | Struct |
Settings of D2D communication triggered by occupied and bright status. |
|
d2d_controller_occupied_brightness_enable | Boolean | Decide whether to enable D2D communication triggered by
occupied and bright status. Valid value:
|
|
d2d_controller_lora_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command. Valid value:
|
|
d2d_controller_command | String |
Specify the control command for D2D communication triggered by occupied and bright status.
|
|
d2d_controller_command_valid_time | Integer |
Specify the control time (Unit: Minute).
|
|
d2d_controller_command_valid_time_enable | Boolean |
Decide whether to enable control time to specify the duration for executing control actions within D2D communication. Valid value:
|
|
occupied_dusky_d2d_controller_settings | Struct |
Settings of D2D communication triggered by occupied and dim status. |
|
d2d_controller_occupied_dusky_enable | Boolean | Decide whether to enable D2D communication triggered by
occupied and dim status. Valid value:
|
|
d2d_controller_lora_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command. Valid value:
|
|
d2d_controller_command | String |
Specify the control command for D2D communication triggered by occupied and dim status.
|
|
d2d_controller_command_valid_time | Integer |
Specify the control time (Unit: Minute).
|
|
d2d_controller_command_valid_time_enable | Boolean |
Decide whether to enable control time to specify the duration for executing control actions within D2D communication. Valid value:
|
|
sleep_time_first_group_settings | Struct |
Settings of Hibernate Period 1 to stop detecting and reporting. |
|
first_group_enable | Boolean |
Decide whether to enable hibernate period 1. Valid value:
|
|
start_time | local_time |
Specify the hibernate period start time.
|
|
end_time | local_time |
Specify the hibernate period end time.
|
|
sleep_time_second_group_settings | Struct |
Settings of Hibernate Period 2 to stop detecting and reporting. |
|
first_group_enable | Boolean |
Decide whether to enable hibernate period 2. Valid value:
|
|
start_time | local_time |
Specify the hibernate period start time.
|
|
end_time | local_time |
Specify the hibernate period end time.
|
- Valid value – Daylight Saving Time
-
0
: 00:00 (Default value)60
: 01:00120
: 02:00180
: 03:00240
: 04:00300
: 05:00360
: 06:00420
: 07:00480
: 08:00540
: 09:00600
: 10:00660
: 11:00
720
: 12:00780
: 13:00840
: 14:00900
: 15:00960
: 16:001020
: 17:001080
: 18:001140
: 19:001200
: 20:001260
: 21:001320
: 22:001380
: 23:00