Blind dosing can be helpful for some people. I found simply not being told what my dose was when I took it was helpful. If you get mostly take homes the dose will still be on the bottle (law), so its more so about how you let yourself think about it IMO.
So lets see, I stopped using heroin/other opioids over 3.5 years ago, methadone a bit over a year ago, so I guess I have a little time dealing without. The single best things I did for cravings was learning to meditate. That was a big thing for me in cultivating an overall healthier lifestyle. Having good teachers was very important though.
As I finished my taper off methadone and for a time after I had stopped taking it, I used a fair bit of iboga and NMDA antagonists (DXM, MXE, ketamine, PCP). They were very helpful in helping me distance myself and change the way I thought about opioid use, but they're very tricky for most people to use. I don't really advise people to use such drugs for dealing with cravings, but they can be very useful in overcome one's harmful relationship with opioids.
For instance, I experience perhaps the first time I've ever been content with just existing, with the way things are as imperfect (and they're quite imperfect given my life) as they are, without having any desire to use a drug, all as a direct consequence of my NMDA antagonist use during this period. That was pretty profound for me, and I've since experienced glimmers of this again after stopped that kind of drug use (related to potential health issues surrounding it). But as anyone knows who is familiar with severe opioid use disorder, feeling content without any need for opioids is a profound experience after years of misuse.
These days, I guess my issues with cravings have more to do with my other mental health issues. When I'm dealing with post traumatic stress, intense anxiety or depression, my cravings (not for opioids really, those are mostly gone because when I think about them I've trained myself to focus more on their total cost to me, which is undeniably negative, if almost entirely for the social consequences of heroin/opioid use) are most intense. But these days I don't really crave opioids, and I most certainly have no cravings for heroin or methadone in particular.
Sacred medicine (entheogens: mescaline, DMT, LSD, mushrooms, etc) has also been very helpful at helping me restructure how I relate to some of my past drug use. It has all been about coming to terms with where I'm at versus where I want to be (and am capable of being), and basically realizing on a more foundational level that if I continue to use opioids I won't be able to achieve the most important goals I have long for myself (most interpersonal goals, but also professional). The opioid using lifestyle has turned out, for whatever reasons, to be incompatible lifestyle that I wish to achieve for myself.
When I do think about using heroin, normally it's some visually based thoughts (mindful awareness practices/meditation has been super helpful at helping me cultivate sensory clarity, concentration and equanimity, three extremely useful skills to have when working with cravings of all sorts) about it connected to memory. That seems to go to, well, if I use now, what do I risk? Frankly I could get away with using heroin recreationally (at least for a time) without really endangering myself, but the risks are simply too great. I've put a LOT of work into not using heroin, and using it is counter productive to the lifestyle I've cultivated since getting off, one I've decided I much prefer to that my using has necessitated previously (or would now).
Self care and taking good care of my mental health is the best way I now deal with/avoid cravings. It can certainly be a struggle when you're not living in a particularly supportive environment, but as long as you meet yourself where you're at anything is possible