A casing valve including a tool housing defining an internal channel from a wellbore annulus. A valve allows selective communication between the internal channel and the wellbore annulus, where the valve has a sliding sleeve positioned externally to the tool housing. A first piston surface for opening the valve and a second piston surface for closing the valve are attached to the sleeve and a fluid supply valve directs fluid to the first and second piston surface. An electronic controller operates the fluid control valve to direct the fluid to the first and second control valve.