google developer home script looping for door contact