Проверяю.
Создаю произвольный шаблон с идентификатором “LD-2410”:
{
"device_type": "LD-2410",
"title": "LD-2410",
"group": "g-custom",
"device": {
"name": "LD-2410",
"id": "LD-2410",
"groups": [
{
"title": "Inputs",
"id": "inputs",
"order": 0
},
{
"title": "Settings",
"id": "settings",
"order": 1
}
],
"channels": [
{
"name": "testreg",
"reg_type": "holding",
"address": 200,
"scale": 1,
"max": 255,
"type": "value",
"format": "u16",
"group": "general"
},
],
"parameters": {
"stopbits": {
"title": "stop-bits",
"description": "stop-bits qty",
"address": 101,
"reg_type": "holding",
"enum": [1, 2],
"default": 2,
"enum_titles": [
"1",
"2"
],
"group": "settings",
"order": 1
}
},
}
}
и второй с идентификатором “LD-2411”
{
"device_type": "LD-2411",
"title": "LD-2411",
"group": "g-custom",
"device": {
"name": "LD-2411",
"id": "LD-2411",
"groups": [
{
"title": "Inputs",
"id": "inputs",
"order": 0
},
{
"title": "Settings",
"id": "settings",
"order": 1
}
],
"channels": [
{
"name": "testreg",
"reg_type": "holding",
"address": 200,
"scale": 1,
"max": 255,
"type": "value",
"format": "u16",
"group": "general"
},
],
"parameters": {
"stopbits": {
"title": "stop-bits",
"description": "stop-bits qty",
"address": 101,
"reg_type": "holding",
"enum": [1, 2],
"default": 2,
"enum_titles": [
"1",
"2"
],
"group": "settings",
"order": 1
}
},
}
}
Проверяю что на контроллере есть устройства в соответствующей группе: