the easiest way is to copy-paste the section in fhem conf that defines relays on the UniPi and modify the address according to your jumper settings and numbers of the relays. The extension module is the same as the relays on UniPi.