Generally you have to be in reasonable fear for your life to be able to legally use deadly force.
That may be met in your house, but also may not (consider a daytime break in burgular is a female, child, physically small, impaired, handicapped).
Talmud suggests that you can use deadly force at night based on the breakin alone (as you can’t see to know what the person is doing) but can’t during the day (absent further provocation).
Right, it needs to be during the night if its just breaking into your house alone that causes you to use deadly force.