Everything was going so good

The switch is supplying a ground to the system when open.

Sounds like a relay somewhere for some reason tied to the dome light cir.

Any alarm system?