I have uploaded a project where there are two examples of turning on and off lighting. Unzip and open with RPGiAB, see how it can be done and copy / paste what is needed. There are some instructions in the map.
Might seem a bit disconnected, was thinking of creating a bigger tutorial project and this was just a small snippet of it.