The actual system.device.addDevice() just create the device and all their properties but as we only have Modbus devices, we can't define the address map inside it, that is fundamental to make it work. It will be useful to have another dictionary variable like the deviceProps to add the modbus address map to the mentioned function or a separate function like system.device.addModbusAddressMap().