We have an intruder alarm. We can switch some detectors off, whilst leaving others on. If you don't want your dog to set the alarm off, put it in a room in which the detector is switched off. As regards your husband working shifts, you can set the alarm as normal when you go to bed. When your husband comes home, he will probably trigger the alarm's warning sound when he comes in at the front door. He will have about 30 seconds to get to the keypad and turn the alarm off. When he has done that, the alarm will be unset (i.e. not likely to go off) until he does what you did when you went to bed.