Solar powered valve