Have a look at the networkupstools binding. It also dynamically creates channels.
Thanks.
I already started with J-N-K suggested snippet. And: Now I have at least something which compiles and I get the Debugger to trigger the Code This is a lot less frustrating than not knowing why the code never is triggered by the debugger
After having a look at that part I’ll also have a look at the networkupstools binding.