@grssll is your relay already wired to your pi? And does it already work when you use the command line to change the state of the GPIO pin?