Adapting Onkyo device handler?

I also tried using the new api to create a direct connected device with this Get Started with Direct Connected Devices | SmartThings Developers without success. I get stuck when adding the device at the connection screen. Any idea where I can find a detailed tutorial about adding a lan device? I don’t find the official documentation very straightforward.