I have added a "setIPC" command to DahuaConsole, and it effectively adds the camera to the config:
Cool stuff, one of the reasons why I publish that code - just to let anyone have control and modify as you want in your own devices.
I know current code are not so easy to navigate and modify/add stuff, but it will be much readable and easier for that in next commit, still working on that (and some new stuff).