the laws are a quagmire of contradiction..
federal ,state and local laws all contradict on another..
its absolutely non sensical..
a federal or court would find you innocent on all charges but a state court would give you 7-12.. makes no sense at all..
bus just because someone is in your home does not give you the right to shoot them ,there are several criteria that must be satisfied to use deadly force. most importantly in that situation is the imminent infliction of death or grievous bodily injury upon yourself by the invader..
(disclaimer,this is not legal advice)
more broadly ,the six duties of anyone considering the use of deadly force in self defense:
1).avoid physical contact and conflict at all costs:
you must do EVERYTHING in your power to avoid a situation or confrontation ,NO MATTER WHAT it takes!!
people who choose to bear the responsibility of carrying a firearm do not have the luxury of pride or feelings,so leave them at home.. if you can run away ,act like a crazy man,or anything other recourse than drawing your weapon you must take ,even if it means peeing all over yourself and singing thriller while spinning in a circle

2.)Escape ,evade,or retreat:
You MUST Run away like a little school girl...If there is a way out of a confrontation besides using lethal force, you MUST take it...if for example a court can find that you could have jumped off a royou instead used deadly force, you will be found guilty... the only exception to this is in your home,where you are considered in your safe zone, but that still does not give you the right to use deadly force.
3)Use only as much force as necessary:
once youve incapacitated an individual it is not a license to kick theliving bejesus out of them or continue shooting them..
call the authorites and be thankfull you didnt have to kill anyone..
4: satisfy the reasonable person:
would soneone who saw the concflict transpire agree that you were absolutely without any other recourse than the use of deadly force? this is a good bar to use to measure justification.. it forces you to look outside of yourself and reassess the situation
5.)Posess an actual belief of:
Endangered personal safety (to justify the use of non-deadly force)
Fear of imminent Death or grievous bodily injury (to justify the use of deadly force)
note that grievous bodily inhury is considered to be an injury that will likely eventully result in death..This is the grey area..you say "how do i prove to a judge or jury how i "felt".. the best thing you can do is to use the bystander rule from number 4.. if a bystander were there and saw the whole thing (and one may have) would you say that what they saw met all of the requirments im explaining here?
better be sure...
6: claim responsibility:
if you run you look like the guilty party.. dont hide your firearm or anything else foolish,, call a police officer immedietly, holster your weapon and wait for them to arrive..
to do anyhtign else will jeopardize any future defense you may have..