EM300-DI – 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 EM300-DI TSL model, their descriptions, and how to use them.
Usage
- Have an overview of the configurable properties and their default values of EM300-DI .
- 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 EM300-DI 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": 600, // Reporting Interval Type: int Unit: s
"collecting_interval": 60, // Collecting Interval Type: int Unit: s
"di_switch_mode": "2", // GPIO Mode Switching Type: enum
"pulsed_filter": { // Pulsed Filter Type: struct
"ctrl": true // Pulsed Filter Enable Type: bool
},
"pulse_conver_cfg": { // Pulse Value Conversion Type: struct
"enable": false, // Pulse Value Conversion Enable Type: bool
"water": 1, // Pulse Conversion Rate: Water Consumption Type: float
"pulse": 1, // Pulse Conversion Rate: Pulse Type: float
"unit": "L" // Pulse Conversion Rate: Unit Type: string
},
"threshold_parameter_temperature": { // Temperature Threshold Alarm Settings Type: struct
"threshold_condition": "0", // Threshold Condition Type: enum
"threshold_min": 0, // Value A Type: float Unit: ℃
"threshold_max": 0 // Value B Type: float Unit: ℃
},
"water_threshold_switch": { // Water Flow Threshold Settings Type: struct
"enable": false // Water Flow Threshold Enable Type: bool
},
"water_status_time": 39, // Duration for Water Flow Determination Type: int Unit: s
"water_threshold_cfg": { // Water Flow Timeout Alert Settings Type: struct
"enable": false, // Water Flow Timeout Alert Enable Type: bool
"time": 1 // Timeout interval Type: long Unit: min
},
"water_stop_threshold_cfg": { // Water Outage Timeout Alert Settings Type: struct
"enable": false, // Water Outage Timeout Alert Enable Type: bool
"time": 1 // Timeout interval Type: long Unit: min
},
"time_zone": "0", // Time Zone Type: enum
"d2d_key": "5572404c696e6b4c", // D2D Key Type: string
"d2d_trigger_by_water_timeout": { //Disable D2D communication triggered by Water Outage Timeout Alarm.
"enable": false, // Trigger Enable Type: bool
"lora_uplink_enable": false, // LoRa Uplink Type: bool
"control_command": "0000" // Control Command Type: string
},
"d2d_trigger_by_water_timeout_remove": { //Disable D2D communication triggered by Water Outage Timeout Alarm release.
"enable": false, // Trigger Enable Type: bool
"lora_uplink_enable": false, // LoRa Uplink Type: bool
"control_command": "0001" // Control Command Type: string
},
"d2d_trigger_by_water_spring": { //Disable D2D communication triggered by Water Flow Timeout Alarm.
"enable": false, // Trigger Enable Type: bool
"lora_uplink_enable": false, // LoRa Uplink Type: bool
"control_command": "0002" // Control Command Type: string
},
"d2d_trigger_by_water_spring_remove": { //Disable D2D communication triggered by Water Flow Timeout Alarm release.
"enable": false, // Trigger Enable Type: bool
"lora_uplink_enable": false, // LoRa Uplink Type: bool
"control_command": "0003" // Control Command Type: string
},
"d2d_trigger_by_gpio": { //Disable D2D communication triggered when digital status is high.
"enable": false, // Trigger Enable Type: bool
"lora_uplink_enable": false, // LoRa Uplink Type: bool
"control_command": "0000" // Control Command Type: string
},
"d2d_trigger_by_high_remove": { //Disable D2D communication triggered when digital status is low.
"enable": false, // Trigger Enable Type: bool
"lora_uplink_enable": false, // LoRa Uplink Type: bool
"control_command": "0001" // Control Command Type: string
},
"data_storage_enable": false, // Data Storage Enable Type: bool
"retransmission_enable": false, // Data Retransmission Enable Type: bool
"retransmission_interval": { // Retransmission Interval Settings Type: struct
"interval": 600 // Retransmission Interval Type: int Unit: s
},
"retrival_interval": { // Retrival Interval Settings Type: struct
"interval": 60 // Retrival Interval Type: int Unit: s
}
}
}
Description
The following table provides the description and valid values for the configurable properties of EM300-DI.
Parameter | Type | Description | |
---|---|---|---|
reporting_interval | Integer |
Specify the interval for data reporting (Unit: Second).
|
|
collecting_interval | Integer |
Specify the interval for collecting data (Unit: Minute).
|
|
di_switch_mode | Enum |
Select the working mode of digital input.
Valid value :
|
|
pulsed_filter | Struct |
Note: This setting ONLY takes effect
when di_switch_mode is set to
2 .Pulsed Filter settings. |
|
ctrl | Boolean | Decide whether to enable to filter the pulse counter under
the rate of 250 us.
Valid value :
|
|
pulse_conver_cfg | Struct |
Note: This setting ONLY takes effect
when di_switch_mode is set to
2 .Pulse Value Conversion settings. |
|
enable | Boolean |
Decide whether to enable pulse value conversion.
Valid value :
|
|
water | Float |
Specify the water consumption value which the pulse number convents to.
|
|
pulse | Float |
Specify the pulse number which need to convent.
|
|
unit | String |
Specify the pulse conversion water consumption unit.
|
|
threshold_parameter_temperature | Struct |
Temperature Threshold Alarm Settings. |
|
threshold_condition | Enum |
Specify the conditions for triggering the temperature alarm.
Valid value :
|
|
threshold_min | Float |
Specify the minimum threshold for temperature alarm (Unit: °C).
|
|
threshold_max | Float |
Specify the maximum threshold for temperature alarm (Unit: °C).
|
|
water_threshold_switch | Struct |
Note: This setting ONLY takes effect
when di_switch_mode is set to
2 .Water Flow Threshold Settings. |
|
enable | Boolean |
Decide whether to enable Water Flow Threshold settings.
Valid value :
|
|
water_status_time | Integer |
Note: This setting ONLY takes effect
when water_threshold_switch.enable is set to
true .Specify the duration for Water Flow Determination ( Unit : second) . If the pulse counter does not increase for this duration time, the device will judge current status as “Water Outage”; otherwise, the device will judge current status as “Water Flow”.
|
|
water_threshold_cfg | Struct |
Water Flow Timeout Alarm Settings. |
|
enable | Boolean |
Decide whether to enable Water Flow Timeout Alarm.
Valid value :
|
|
time | Long |
Specify the timeout interval for water flow( Unit : minute) .
|
|
water_stop_threshold_cfg | Struct |
Water Outage Timeout Alarm Settings. |
|
enable | Boolean |
Decide whether to enable Water Outage Timeout Alarm.
Valid value :
|
|
time | Long |
Specify the timeout interval for water outage( Unit : minute) .
|
|
time_zone | Enum |
Specify the time zone for this device.
|
|
d2d_key | String | Specify the key for D2D communication.
|
|
d2d_trigger_by_water_timeout | Struct |
Note: This setting ONLY takes effect
when water_stop_threshold_cfg.enable is set to
Settings of D2D
communication triggered by water outage timeout alarm.true . |
|
enable | Boolean |
Decide whether to enable D2D communication triggered by water outage timeout alarm.
Valid value :
|
|
lora_uplink_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command.
Valid value :
|
|
control_command | String |
Specify the control command for D2D communication triggered by water outage timeout alarm.
|
|
d2d_trigger_by_water_timeout_remove | Struct |
Note: This setting ONLY takes effect
when water_stop_threshold_cfg.enable is set to
Settings of D2D
communication triggered by water outage timeout alarm
release.true . |
|
enable | Boolean |
Decide whether to enable D2D communication triggered by water outage timeout alarm release.
Valid value :
|
|
lora_uplink_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command.
Valid value :
|
|
control_command | String |
Specify the control command for D2D communication triggered by water outage timeout alarm release.
|
|
d2d_trigger_by_water_spring | Struct |
Note: This setting ONLY takes effect
when water_threshold_cfg.enable is set to
Settings of D2D
communication triggered by water flow timeout alarm.true . |
|
enable | Boolean | Decide whether to enable D2D communication triggered by water
flow timeout alarm.
Valid value :
|
|
lora_uplink_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command.
Valid value :
|
|
control_command | String |
Specify the control command for D2D communication triggered by water flow timeout alarm.
|
|
d2d_trigger_by_water_spring_remove | Struct |
Note: This setting ONLY takes effect
when water_threshold_cfg.enable is set to
Settings of D2D
communication triggered by water flow timeout alarm
release.true . |
|
enable | Boolean |
Decide whether to enable D2D communication triggered by water flow timeout alarm release.
Valid value :
|
|
lora_uplink_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command.
Valid value :
|
|
control_command | String |
Specify the control command for D2D communication triggered by water flow timeout alarm release.
|
|
d2d_trigger_by_gpio | Struct |
Note: This setting ONLY takes effect
when di_switch_mode is set to
Settings of D2D communication
triggered when digital status is high.1 . |
|
enable | Boolean |
Decide whether to enable D2D communication triggered when digital status is high.
Valid value :
|
|
lora_uplink_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command.
Valid value :
|
|
control_command | String |
Specify the control command for D2D communication triggered when digital status is high.
|
|
d2d_trigger_by_high_remove | Struct |
Note: This setting ONLY takes effect
when di_switch_mode is set to
Settings of D2D communication
triggered when digital status is low.1 . |
|
enable | Boolean |
Decide whether to enable D2D communication triggered when digital status is low.
Valid value :
|
|
lora_uplink_enable | Boolean |
Decide whether to enable LoRa Uplink, which will send an uplink LoRa packet after sending the D2D control command.
Valid value :
|
|
control_command | String |
Specify the control command for D2D communication triggered when digital status is low.
|
|
data_storage_enable | Boolean |
Decide whether to allow the device to store data.
Valid value :
|
|
retransmission_enable | Boolean |
Decide whether to enable data
retransmission, which allows the device to log time point of
network disconnection periodically resend the accumulated
data during the disconnection period upon reconnection.
Note: This setting ONLY takes effect
when data_storage_enable is set to
true .
Valid value :
|
|
retransmission_interval | Struct |
Note: This setting ONLY takes effect
when retransmission_enable is set to
The interval for data
retransmission.true . |
|
interval | Integer |
Specify the interval for data retransmission (Unit:
Second).
|
|
retrival_interval | Struct |
The time interval for data retrieval. |
|
interval | Integer |
Specify the time interval for data retrieval (Unit:
Second).
|