NEWS
Automatic Instance Generation
-
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.
-
@jack-3
Which adapter do you refer to ? Normally only very few instances are created per adapter. -
@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.
-
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 -
@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