Stand your ground is irrelevant in this case.
Stand your ground only applies when you are out on a public street, in a mall,anywhere you have a legal RIGHT to be. In a non-stand your ground state, you have a DUTY to retreat IF you can do so safely. If you could have retreated, but didn't, then a claim of self-defense will not be allowed by the court.
In a stand your ground state, the duty to retreat is eliminated.
But in no state do you have a duty to retreat from your own home.
And if you are awoken from sleep by people coming in through your door, it's probably impossible to retreat SAFELY, and if you cannot retreat safely, then you are not required to retreat.