How to make the lamps invisible

how to make the lamps invisible in devices

What do you mean? You don’t want to see them in the “Devices”? That’s not possible. You could create a zone “Z hidden” and put the lights in there. Then they are always shown at the bottom of the devices-list…