The present disclosure provides a valve assembly comprising a valve section, a power section, and an electronics section. The valve assembly is configured to mate with a tubing sub (and/or mandrel) inserted in-line with a tubing string inserted into a wellbore. The valve allows for injection into or production from the tubing string. The valve assembly comprises an electric motor and a motor controller permitting fine control over the valve, as well as sensors which measure various parameters, such as fluid flow, valve position, pressure, temperature, and/or water cut. A cable connects the valve assembly to the surface and provides power and data telemetry and allows control of the valve assembly with a remote electronic signal. Multiple valve assemblies may be provided at spaced intervals along the tubing string and individually monitored and/or controlled by a remote location. Also disclosed is a method for operation of such valve assemblies.