Toggle Light using HTC Vive

I want to toggle lights when i press some button on my vive controller. How to do that ?