initial push
This commit is contained in:
33
01-device-info/device-supported-commands.bru
Normal file
33
01-device-info/device-supported-commands.bru
Normal file
@@ -0,0 +1,33 @@
|
||||
meta {
|
||||
name: Device Supported Commands
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/sup_c
|
||||
body: formUrlEncoded
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:form-urlencoded {
|
||||
~index: 0
|
||||
}
|
||||
|
||||
docs {
|
||||
# Device Supported Commands
|
||||
|
||||
Use this command first on each device to get supported parameters, labels and configurations.
|
||||
|
||||
## Parameters
|
||||
- `index` (optional): Index of supported command description (0-n)
|
||||
|
||||
## Response
|
||||
If index is valid:
|
||||
- `c`: API command name
|
||||
- `p`: Array of supported parameters
|
||||
- `l`: Array of labels for temperatures/timers
|
||||
- `ra`: Resetable value bitmask
|
||||
|
||||
If index is undefined or >= number of commands: empty JSON
|
||||
}
|
||||
Reference in New Issue
Block a user