Had this problem with my son till he was about 8.
We tried the ' waking him up to wee ' plan and, after a few struggles to get him to the loo, we decided that it was easier to bring his old potty to the bed. He knelt up and did the wee quickly without getting cold or properly awake. After a few weeks of this, he could (sleepily) tell us if he needed to use the potty or not and, if not, he was generally dry in the morning.
My daughter was dry day & night by 3.
No two are the same...........