Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. ioBroker general
    4. Automatic Instance Generation

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Automatic Instance Generation

    This topic has been deleted. Only users with topic management privileges can see it.
    • Jack 3
      Jack 3 last edited by

      I would like to be able to automatically generate an instance (or at most with 1 or 2 clicks) when I connect a new TCP device with a predetermined and known IP adress. Does anybody have any tips for this? I tried using the JavaScript adapter but I couldn't find any node modules which had this functionality. Thanks in advance.

      mcm1957 1 Reply Last reply Reply Quote 0
      • mcm1957
        mcm1957 @Jack 3 last edited by

        @jack-3
        Which adapter do you refer to ? Normally only very few instances are created per adapter.

        1 Reply Last reply Reply Quote 0
        • Jack 3
          Jack 3 last edited by

          @mcm1957 I mean the modbus adapter, the main point that I want to be able to do this for is so that I can update all of the instances at once if I need to make changes instead of having to manually go through each of the instances.

          OliverIO mcm1957 2 Replies Last reply Reply Quote 0
          • OliverIO
            OliverIO @Jack 3 last edited by OliverIO

            @jack-3

            If you want to change the instance configuration of an adapter you can change the object data of the datapoint

            system.adapter.<adaptername>.<instancenumber>

            You can find the configuration in this object in the native attribute
            To see this datapoint you have to enable the expert mode.
            I do not recommend to create or delete an instance programaticaly

            1 Reply Last reply Reply Quote 0
            • mcm1957
              mcm1957 @Jack 3 last edited by

              @jack-3 said in Automatic Instance Generation:

              @mcm1957 I mean the modbus adapter, the main point that I want to be able to do this for is so that I can update all of the instances at once if I need to make changes instead of having to manually go through each of the instances.

              Why do you have multiple instances of modbus? Client or Server? I do not see the use case.

              And what MODBUS config needs to be changed at multiple instances?

              Anyway.
              As toll you can change the config of an existing instance by readibg and writing the native Part of the instance object

              1 Reply Last reply Reply Quote 1
              • First post
                Last post

              Support us

              ioBroker
              Community Adapters
              Donate

              535
              Online

              31.6k
              Users

              79.6k
              Topics

              1.3m
              Posts

              3
              5
              320
              Loading More Posts
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes
              Reply
              • Reply as topic
              Log in to reply
              Community
              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
              The ioBroker Community 2014-2023
              logo