Circumventing the limitations of current bioassays, we introduce the first light-controlled assay, the OptoAssay, towards wash- and pump-free point-of-care diagnostics. Extending the capabilities of standard bioassays with light-dependent and reversible interaction of optogenetic switches, OptoAssays enable a bi-directional movement of assay components, only by changing the wavelength of light. Combined with smartphones, OptoAssays obviate the need for external flow control systems like pumps or valves and signal readout devices.