A scheme of a light-driven current switch based on properties of a conducting polymer containing photochromic moieties chemically attached to the main chain is put forward. The idea is supported with results of 3D calculations of local states for charge carriers formed in the vicinity of dipolar species in molecular materials, and with quantum chemical calculations.