{
  "device_type": "rs-485-motor-controller",
  "title": "rs-485-motor-controller_template_title",
  "group": "io_modules",
  "device": {
    "name": "RS-485 Motor Controller",
    "id": "rs-485-motor-controller",
    "groups": [
      {
        "title": "IO Control",
        "id": "io_control"
      },
      {
        "title": "Communication",
        "id": "communication"
      }
    ],
    "channels": [
      {
        "id": "open_command",
        "name": "Open Command",
        "reg_type": "holding",
        "address": 0,
        "group": "io_control",
        "type": "wo-switch"
      },
      {
        "id": "stop_command",
        "name": "Stop Command",
        "reg_type": "holding",
        "address": 1,
        "group": "io_control",
        "type": "wo-switch"
      },
      {
        "id": "close_command",
        "name": "Close Command",
        "reg_type": "holding",
        "address": 2,
        "group": "io_control",
        "type": "wo-switch"
      },
      {
        "id": "set_percent_command",
        "name": "Set Percent Command",
        "reg_type": "holding",
        "address": 3,
        "group": "io_control",
        "type": "range",
        "units": "%",
        "min": 0,
        "max": 100
      },
      {
        "id": "reversal_command",
        "name": "Reversal Command",
        "reg_type": "holding",
        "address": 4,
        "group": "io_control",
        "type": "wo-switch"
      },
      {
        "id": "delete_limit_command",
        "name": "Delete Limit Command",
        "reg_type": "holding",
        "address": 5,
        "group": "io_control",
        "type": "wo-switch"
      },
      {
        "id": "read_status",
        "name": "Read Status",
        "reg_type": "holding",
        "address": 6,
        "group": "io_control",
        "readonly": true,
        "enum": [
          0,
          1,
          2
        ],
        "enum_titles": [
          "Stop",
          "Close",
          "Open"
        ]
      }
    ],
    "parameters": {
      "set_address": {
        "title": "Set Address",
        "address": 7,
        "reg_type": "holding",
        "group": "communication",
        "order": 0,
        "description": "Set device address",
        "min": 1,
        "max": 254
      }
    },
    "translations": {
      "en": {
        "rs-485-motor-controller_template_title": "RS-485 Motor Controller"
      },
      "ru": {
        "rs-485-motor-controller_template_title": "RS-485 Motor Controller",
        "IO Control": "Управление вводами/выводами",
        "Communication": "Связь",
        "Open Command": "Команда открытия",
        "Stop Command": "Команда остановки",
        "Close Command": "Команда закрытия",
        "Set Percent Command": "Команда установки процента",
        "Reversal Command": "Команда разворота",
        "Delete Limit Command": "Команда удаления лимита",
        "Read Status": "Чтение статуса",
        "Set Address": "Установка адреса"
      }
    }
  }
}