When using the function system.device.addDevice with the deviceProps containing “zeroBasedAddressing” : “false”, the device created gets the parameter “One-based addressing” set to false:
The scripting keyword should be oneBasedAddressing to match the gateway GUI parameter (and functionality) or the logic should be inverted (setting zeroBasedAddressing to false should set the GUI parameter “One-based addressing” to true)
Are you using the keyword-argument based zeroBasedAddressing, or passing a dictionary to deviceProps with zeroBasedAddressing? I’m looking at making a fix, and curious which way it’s actually being used.
Okay, the fix up for review right now is just to add a new OneBasedAddressing setting that’s going to do what’s expected - ZeroBasedAddressing will still work, but obviously with inverted functionality.
This is updated in the newest nightly build - basically, the setting that’s exposed to users is now the proper zero-based addressing setting, so addDevice matches actual device configuration.