trigger.template.groups
The trigger.template.groups command returns a list of available trigger template groups.
TR50 Request
{
"1": {
"command": "trigger.template.groups",
"params": {
"includeGlobal": true
}
}
}
Request Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
includeGlobal |
boolean |
|
If globally available templates should also be returned in the list. Defaults to false. |
TR50 Response
If the command is sent successfully a success message and the array of trigger template groups is returned. Otherwise, an error and error message will be returned.
{
"1": {
"success": true,
"params": {
"groups": [
"temperature",
"speed",
"distance"
]
}
}
}
Response Parameters
Name |
Type |
Description |
---|---|---|
groups |
Array |
The array of trigger template groups. |