Logo Logo en
  • iRidi Pro
    Основные компоненты
    • Приложение i3 Pro
    • iRidi Pro Server
    • iRidi Studio
    • iRidium studio v. 1.3.8 (устаревшая версия)
    Java Script в iRidi
    • Руководство
    • Справочник
    • Примеры
    • JS драйвера
    другие
    • Личный Кабинет
    • iRidium Cloud
    • iRidium Transfer
    • Push-уведомления
    • Лучшая практика
    Лицензирование
    • Лицензирование и передача проекта
    • Оффлайн-лицензирование
    • Активация iRidi Pro Server
  • Продукты
    i3 lite
    • Приложение i3 lite
    • Регистрация и лицензирование
    • Сервер
    • Модули
    KNX Home Server
    • Приложение i3 KNX
    • KNX Home Server
    BUS77 HOME SERVER
    • Приложения Bus77 Home и Bus77 Lite
    • Bus77 Home Server
    Решения
    • BYOD - решение для гостиниц
    • Портал жителя - решение для МКД
    iRidi SCADA
    • iRidi SCADA
  • Bus77
    НАСТРОЙКА BUS77
    • Основы Bus77
    • Приложения Bus77 Home и Bus77 Lite
    • Работа с драйвером Bus77 в iRidi Studio
    • Настройка шины Bus77 в iRidi Studio
    ПРОТОКОЛ BUS77
    • Характеристики CAN (Bus77)
    • Описание протокола
    • Исходники на GitHub
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
  • Поддерживаемое оборудование
    Драйверы
    • Список драйверов
    • ProAV драйвера
    • AV & Custom Systems
    • JS драйвера
    • Сторонние драйвера и фриланс
    Протоколы и интерфейсы
    • Голосовое управление
    • 1-Wire
    • BACnet IP
    • Bus77
    • KNX
    • KNX IP BAOS
    • Weinzierl kBerry
    • Microsoft Exchange
    • Modbus
    • MQTT
    • NFC
    • ODBC
    • Onvif
    • SIP
    • SNMP
    • Wake On Lan
    • Z-Wave
    • ZigBee
    Производители
    • AMX
    • AVCiT
    • Beckhoff ADS
    • Biamp Tesira
    • Bluesound
    • Casambi
    • BSS Harman
    • Clipsal
    • ControlArt 7Port
    • Crestron
    • DigiBird
    • Domintell
    • Duotecno
    • EIDE
    • EPSNET
    • Global Cache
    • HDL Buspro
    • Helvar
    • IEAST
    • INELS BUS
    • INELS Wireless
    • Intesis
    • Kleger
    • Kramer VIA
    • Kramer 3000
    • Larnitech
    • Legrand Netatmo
    • LG TV
    • Lutron
    • Lutron Homeworks QS
    • MyHome
    • Nest
    • Novastar
    • Panasоnic PTZ
    • Philips Dynalite
    • PJLink
    • Satel
    • SamsungTV
    • Sonos
    • Somfy
    • SpinetiX
    • Televic Conference
    • TIS
    • Tion
    • URRI
    • Velbus
    • Velocio
    • Vinteo
    • WyreStorm
    • WiiM
    • Xicato
    • Yamaha
    • ZONT
    • Z-Wave.me
    Протестированное оборудование
    • Панель HDL S57
    • Панель HDL S10
    • SIP-домофон
    • Akuvox
    • Arlight
    • Divus
    • QBic TD-1050 PRO
    • QBic TD-1060 Slim
    • QBic TD-1070
    • Sigur
    • Uni-Ubi
    • Velocio
  • Оборудование iRidi

    Серверы
    • HS Сервер
    • ProAV Control Processor Basic
    • ProAV Control Processor Advanced
    • Спецификация контроллеров UMC
    • Настройка контроллера UMC C2
    • Настройка контроллера UMC C3
    • Настройка контроллера HDL IntelliCenter 2 (UMC C4)
    Модули расширения
    • I-PX-RS1
    • I-PX-RS4
    • I-PX-IR3
    KNX
    • KNX Home Server
    • KNX IP Interface
    Панели управления
    • iRidium Panel 7
    • Touch Panel P3
    • Touch Panel P6
    • Touch Panel P8
    • Touch Panel P10
    • Tabletop Touch Panel 10
    • AV Remote Control
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
    • Differences
iRidium mobile web-site
Содержание
    Инструменты‌
    • Сведения о странице
    • Постоянная ссылка
    • Версия для печати
    • Спецстраницы
    • Связанные правки
    • Ссылки сюда
    Login / Create Account
    Материал из for iRidium developers
    Перейти к: навигация, поиск
    Эта страница является переводом страницы Universal import from JS. Перевод выполнен на 100%.

  • Импорт данных в iRidium studio
  • Universal import from JS
  • Other languages:
    English • ‎русский

    Содержание

    • 1 Universal import from JS
    • 2 Structure of Import File
      • 2.1 Devices
      • 2.2 Connection
      • 2.3 Commands / Feedbacks
      • 2.4 RootFolder
    • 3 Driver import
    • 4 Examples of Drivers
      • 4.1 Domintell
        • 4.1.1 Connection
        • 4.1.2 SubDevice
        • 4.1.3 Commands
        • 4.1.4 Feedbacks
      • 4.2 DuoTecno
        • 4.2.1 Connection
        • 4.2.2 SubDevice
        • 4.2.3 Commands
        • 4.2.4 Feedbacks
      • 4.3 EPSNET (UDP)
        • 4.3.1 Connection
        • 4.3.2 Commands & Feedbacks
      • 4.4 Lutron Homeworks QS (Beta)
        • 4.4.1 Connection
        • 4.4.2 Commands & Feedbacks
      • 4.5 MQTT
        • 4.5.1 Connection
        • 4.5.2 Commands
        • 4.5.3 Feedback
      • 4.6 SNMP
        • 4.6.1 Connection
        • 4.6.2 Commands
        • 4.6.3 Feedback
      • 4.7 Virtual channels
        • 4.7.1 Commands & Feedbacks

    Universal import from JS

    Universal import from JS is a capability to import drivers from js text format that contains json information structure. Json describes a list of drivers to import. In this file you can set definite connection parameters to a driver and create commands and feedback channels.

    documentation was last updated on 26.11.2021


    Examples of drivers:

    • Domintell;
    • DuoTecno;
    • EPSNET;
    • Lutron Homeworks QS (Beta);
    • MQTT;
    • SNMP;
    • Virtual channels.


    A text editor is required for work. Notepad++ is a good solution with syntax highlighting. Create a new file and fill it in according to the driver structure. The structure may change depending on the type of a driver. Different connection settings, subdevice settings, and settings device tags can be added.

    Structure of Import File

    Json file contains the following main sections:
    1. Devices - main settings of a driver without which import is impossible,
    2. Connection - parameters to connect to equipment,
    3. Commands - parameters to set commands,
    4. Feedbacks - parameters to set feedback channels.

    Import from js.png

    Devices

    Studio import 33.png

    The example contains a file with minimal settings to import MQTT driver to iRidium Studio.

    Main driver settigns:

    • Type - a unique numerical ID of a driver, this driver parameter is ID in xml;
    • Name - a unique name of the driver;
    • Protocol - protocol supported by equipment. The first in the list is used by default;
    • Merge - merging drivers of one type:
      • 1 - merge,
      • 0 - do not merge.


    Type for JSON ▼

    Alexa ID="1"

    Google Home ID="2"

    YandexAlice ID="4"

    ZWave ID="5"

    DuoTecno ID="6"

    ELKO EP iNels ID="7"

    iNels RF ID="8"

    KNX Baos kBerry ID="9"

    KNX IP Baos 771-774,777 ID="10"

    KNX IP Router ID="11"

    KNX LMx ID="12"

    Global Cache ID="13"

    Larnitech ID="14"

    iRidium Server ID="15"

    KNX IP Baos 770 ID="16"

    Lutron ID="17"

    SNMP ID="18"

    HDL ID="19"

    Velbus ID="20"

    Domintell ID="21"

    Helvar Net 8 bit device ID="22"

    Helvar Net 16 bit device ID="23"

    Modbus ASCII ID="24"

    Modbus RTU ID="25"/

    Modbus TCP Server ID="26"

    Modbus TCP ID="27"

    BACNet ID="28"

    Custom ID="29"

    1-Wire ID="30"

    Crestron ID="31"

    EPSNET ID="32"

    Beckhoff ID="33"

    MQTT ID="34"

    CustomHttp ID="35"

    AMXDevice ID="36"

    Virtual ID="37"

    Clipsal Gate ID="38"

    Clipsal ID="39"

    SIP ID="40"

    Custom Network ID="41"

    CustomHttp Network ID="42"

    YandexAlicePlatform ID="43"

    Sonos ID="44"

    Modbus TCP Server (Slave mode) Network ID="46"

    Modbus ASCII Network ID="47"

    Modbus TCP Network ID="48"

    Modbus RTU Network ID="49"

    TestDevice ID="50"

    AppleTV ID="51"

    ControlArt ID="52"

    Connection

    Learn connection parameters of a required driver from xml file of the driver. Go to Devices folder (C:\Program Files (x86)\iRidium Ltd\iRidium Pro\Studio32\Devices) and open the driver file in a text editor.


    "Connection" block must be added to the structure given above to set connection parameters of a driver.

    Import10.png

    They include Host and Port of equipment, and specific driver settings.

    You can see a full list of connection parameters in the xml file of a driver in the block framed with “<Connections>...</Connections>”.

    Import30.png

    ID variable contains the name of a parameter.

    Some names of parameters in the studio can differ from the names in the xml file.


    Commands / Feedbacks

    Each device in iRidium studio has commands and feedback channels. Enter a required number and fill in setting of each tag.

    Import28.png

    Each tag (channel or feedback) has 2 obligatory parameters:

    • Direction - type of tag
      • 1 - command;
      • 2 - feedback.
    • Name - a unique name of a command or a feedback.

    There are also specific parameters for each driver. They are written in the “Params” block. You can see a full list of tag parameters in the xml file of a driver. Tag parameters are framed by “<Tags>...</Tags>”.

    Import7.png

    Caption variable contains the name of a tag parameter. Value variable is a unique ID of this parameter.


    RootFolder

    There is a capability in iRidium pro to create a separate folder where any commands, feedback channels, devices and subdevices can be placed. Compulsory fields:

    • Name - name of folder;
    • Items - parameters of commands, feedback channels, devices or subdevices.
    Import27.png


    Driver import

    1 Choose Script(*.js) in the import window.

    2 Choose a required js file.

    Import11.png

    Examples of Drivers

    Domintell

    Creating a template file to import Domintell driver.

    Example:Domintell

    Connection

    Import5.png

    Connection parameters:

    • Host - IP-address of a controller;
    • Port - control port;
    • Password - password for secure access;
    • UpdateTime - frequency of data update (ms).


    SubDevice

    Import15.png
    • Name - name of a subdevice;
    • Module - supported device:
    Import40.png
    Import41.png
    • Serial Number - a serial number.


    Commands

    Import26.png

    Command parameters:

    • Direction = 1 - commans;
    • Name - name of register;
    • Channel - number of channel;
    • Command (CommandDampli in this example) - type of command.
    Import12.png

    List of Commands of Domintell Light Protocol:

    Command Value Description
    None - change the output
    %I - set the output
    %O - reset the output
    %D + decimal dimmer/volume value assignment
    %P + simulate a push on a input (1 - begin shot push, 2 - end shot push, 3 - begin long push, 4 - end long push)
    %I%D + increase dimmer/volume value by step of decimail percent
    %O%D + decrease dimmer/volume value by step of decimail percent
    %DB - execute a Start dim on a dimmer output
    %DE - execute a Stop dim on a dimmer output
    %M + set Temperature mode
    %A + sound Auxiliary selection 1-4 - AUX1-4, 5 - Tuner
    %F + decimail Tuner Frequency in Mhz (1015000 = 101.5 Mhz, multiple of 500)
    %R + set regulation mode
    %U + set Coling Setpoint (decimal T value)
    %T + set Heating Setpoint (decimal T value)
    %H + shutters goes High
    %L + Shutters goes Low


    Feedbacks

    Import24.png

    Feedback parameters:

    • Direction = 2 - feedback;
    • Name - name of feedback;
    • Channel - number of channel;
    • Command (CommandDampliFeedback in this example) - type of feedback
    Import3.png
    • Property (Property3Item in this example) - additional parameters.
    Import1.png


    DuoTecno

    Creating a template file to import Duo Tecno driver.

    Example:DuoTecno

    Connection

    Import22.png

    Connection parameters:

    • Host - IP-address of a controller;
    • Port - control port;
    • Login - login to access a server.


    SubDevice

    Import4.png
    • Name - name of a subdevice;
    • NodeID - ID of a node (HEX format);
    • UnitID - ID of a unit (HEX format).


    Commands

    Import19.png

    Command parameters:

    • Direction = 1 - command;
    • Name - name of a command;
    • Command - type of a command;
    Import6.png
    • Method (MethodSwitch in this example) - a used method
    Import3.png


    Feedbacks

    Import8.png

    Feedback parameters:

    • Direction = 2 - feedback;
    • Name - name of a feedback channel;
    • Command (Switch Status in this example)- type of a feedback;
    Import23.png
    • Method - number of a method;
    • UnitType (UnitTypeSwitch in this example) - type of a unit;
    Import31.png
    • Parameter - available additional parameters of this type of feedback;
    Import32.png
    • Value (Value3ItemFeedback in this example) - available input values.
    Import14.png

    EPSNET (UDP)

    Creating a template file to import EPSNET (UDP). driver.

    Example:EPSNET

    Connection

    Import17.png

    Connection parameters:

    • Host - IP-address of a controller;
    • Port - UDP control port, 61682;
    • UpdateTime - frequency of data update (ms);
    • DeviceAddress - address of a device.


    Commands & Feedbacks

    Import20.png

    Parameters iof commands and feedback channels:

    • Direction:
      • 1 - command,
      • 2 - feedback.
    • Name - name of a register;
    • Type - type of data;
    Import38.png
    • Register - type of register;
    Import39.png
    • Address - number of a register;
    • Bit - the number of a bit in a byte (for Bool).


    Lutron Homeworks QS (Beta)

    Creating a file template to import Lutron Homeworks QS driver (Beta).

    Example:Lutron Homeworks QS (Beta)

    Connection

    ImportFromJS Lutron.png

    Connection parameters:

    • Host - IP address of the controller;
    • Port - connection port to the controller;
    • Login - login to access the controller;
    • Password - password to access the controller;
    • Keep Alive - connection holding time in seconds.


    Commands & Feedbacks

    ImportFromJS Lutron2.png

    Parameters of commands and feedback channels:

    • Direction:
      • 1 - command,
      • 2 - feedback channel.
    • Name - the name of a command / a feedback channel;
    • Command - a command that is call a required device (in the given example it is SHADEGRP = 6);
    ImportFromJS Lutron3.png
    • IntegrationID - the address of a device (it is set beforehand in the Lutron designer configurator);
    • Component - the number of a button on a control panel (for button panels);
    • Action - a type of command (in the given example it is ActionSHADEGRP = 6):
      • ActionDEVICE - allows to control device inputs, such as buttons and dry contacts.
    ImportFromJS Lutron4.png
      • ActionOUTPUT - allows to control outputs such as dimmers and dry contacts outputs.
    ImportFromJS Lutron5.png
      • ActionSHADEGRP - allows to control blinds.
    ImportFromJS Lutron6.png
      • ActionHVAC - allows to control HVAC equipment.
    ImportFromJS Lutron7.png
      • ActionAREA - allows to control zones.
    ImportFromJS Lutron8.png
    • Value - a value that is sent to the channel. Types of values (in the given example the ValueInt32 type is used):
    ImportFromJS Lutron9.png

    All possible values of this type can be found in the xml file of the driver. For example, for Command = DEVICE and Action = Set/Get LED State, there will be the following values:

    ImportFromJS Lutron10.png


    MQTT

    Creating a template file to import MQTT driver.

    Example:MQTT

    Connection

    Import29.png

    Connection parameters:

    • MQTTVersion - version of a protocol on a controller версия протокола;
      • 3 version of MQ Integrator SCADA Device Protocol (MQisdp),
      • 4 version of MQTT protocol.
    • ClientID - ID of a panel;
    • KeepAlive - timeto hold connection in seconds;
    • Clean - "clean start" flag, deletion of subscriptions when connection is broken:
      • 1 - clean session,
      • 0 - stable connections.
    • Host - IP-address of a controller;
    • Port - port to connect to a controller.

    Commands

    Import9.png

    Command parameters:

    • Direction = 1 - command;
    • Name - name of a command;
    • Topic - MQTT path;
    • ValueType - type of value.
    Import36.png
    • QoS - quality of service, guarantee of message delivery from a publisher to a broker:
      • At most once - no more than 1 time, without repetition, delivery is not guaranteed,
      • At least once - one time and more, there can be repetitions, delivery is guaranteed,
      • Exactly once - one time only, without repetition, delivery is guaranteed.
    Import37.png
    • Retain - saving a publication: a broker stores a retain-topic and when new subscrptions appear, the broker sends them with retain flag:
      • 1 - turned on,
      • 0 - turned off.

    Feedback

    Import2.png

    Feedback parameters:

    • Direction = 2 - feedback;
    • Name - name of a command;
    • Topic - MQTT path;
    • ValueType - type of value.
    Import36.png


    SNMP

    Creating a template file to import SNMP driver.

    Example:SNMP

    Connection

    Import21.png

    Connection parameters:

    • Host - IP-address of a device;
    • Port - connection port to a device to send data (it is 161 by default, the driver sends requests to an agent);
    • LocalPort - connection port to a device to get data (It is 162 by default, an agent sends an answer to the driver);
    • InitTagsAtStart - request at start (true/false);
    • InitTagInterval - interval between tag requests. After a failed request a driver switches to request another tag;
    • InitTagAttemptsCount - number of attempts to request each tag.


    Commands

    Import18.png

    Command paramters:

    • Direction = 1 - command;
    • Name - name of a command;
    • OID - numerical ID of an object;
    • TypeCommand - type of command:
      • 0 - Get,
      • 3 - Set;
    • Value Type - type of value:
      • 2 - Int;
      • 4 - String;
      • 5 - Null;
      • 6 - OID;
      • 64 - IP4;
      • 65 - Counter;
      • 67 - Time;
    • Community - sequence of symbols that shows belonging to a group, a sort of a password


    Feedback

    Import35.png

    Feedback parameters:

    • Direction = 2 - feedback;
    • Name - name of a feedback channel
    • OID - numerical ID of an object;
    • TypeTag - type of feedback:
      • Value = 0 - feedback to return a requested value,
      • Trap = 1 - event feedback, it wors when something happens.
    • IPAddres - IP-address;
    • Community - sequence of symbols that shows belonging to a group, a sort of a password.


    Virtual channels

    Creation of a file tempate to import virtual commands and feedback channels in a server project.

    Example:Virtual

    Commands & Feedbacks

    Virtual1.png
    Virtual2.png

    Parameters of commands and feedback channels :

    • Direction:
      • 1 - command,
      • 2 - feedback channel.
    • Name - the name of a command / a feedback channel.
    Источник — «https://dev.iridi.com/index.php?title=Universal_import_from_JS/en&oldid=117841»
    About us
    Company
    Team
    History
    Philosophy
    Rewards
    Partnership
    Our partner
    Partnership Programs
    Apply for partnership
    products
    iRidium pro
    iRidium lite
    iRidium gate
    iRidium server
    Loads
    iRidium pro
    iRidium lite
    Other version
    Marketing materials
    Support
    On-line courses/Video
    Recommended equipment
    Other version
    iRidium pro
    Documentation
    FAQ
    Forum
    iRidium lite
    Documentation
    Forum
    Projects
    Standart projects
    Smart buildings
    Smart house
    Special solution
    Find a dealer
    News
    Youtube
    Twitter
    VK
    Logo
    contact@iridi.com
    +7 (499) 322-73-29

    Privacy policy